Software Development Network Logo
  • Windows Forms
  • Visual C++
  • Game Technologies
  • Smart Devicet
  • .NET Development
  • Windows Vista
  • Audio and Video
  • Visual FoxPro
  • Visual Basic
  • Visual Studio
  • IE Development
  • Microsoft ISV
  • VS Team System
  • SQL Server
  • SharePoint Products

Software Development Network >> Visual Basic

Visual Basic

New Question

Selecting from a ComboBox
Convert C# to VB.net
Print graphics that are on the form into PDF
AndAlso Partial Code Coverage Results
Split Question
Problem calling VB6 forms from .NET app
Single APP Instance VB.NET 2005
Add, Get and PUT records in files
I NEED HELP!!!! PLEASE
Is There Something Wrong With This?

Top Answerers

xmlfan
Dr.Pepper
Đonny
eevee
LRA
Igor24
gallarock
dvl_vn
StarsFire
JBlackburn__
SOAP and
Only Title

Answer Questions

  • QasimRaza Catching and recovering from database exceptions

    Is this a reasonable scheme for handling datbase exceptions when the program must keep running and must perform the update If not whats the recommended method Dim Done AS Boolean While Not Done Try updatedata Done=True Catch ex AS OdbcException logwriter(ex.ToString) Thread.Sleep(250) End Try "' Without the Finally you need to either code the connection close ' in all catch blocks or your app will likely ' handle connection close, and object(s) disposal" Or your app is exposed to unclosed connections and may have continued problems, basically the exception is not handled correctly. Rgds, Martin. ...Show All

  • ab2304 Assigning a currency value to a radio button

    Hello, I'm very new to programming and I am starting to grasp the concept. But I can't figure something out, how to assign a property to an object once that object is activated. For example assigning a currency value to a radio button once that radio button is CheckedChanged VisualStudio 2005 VisualBasic It sounds like you have a situation where you have several option buttons and want to select the appropriate box based on the currency value in your data store. You can't directly bind to the collection of controls. You will need to programatically set the checked button yourself via code. One option would be to have a text box on your form located at -100,-100 and bind the currency value to the text box ...Show All

  • tribal Opening Default Email Client

    Hi, I'm developing an application using Visual Basic 2005 and I'm just wondering how I go about opening a new email using the default email client Basically, my application has a section where the user can enter email addresses. I want the user to be able to click on any of the email addresses and have the default email client set in Windows (such as Outlook or Outlook Express for example) open up a New Message window with the To field already filled in with the email address the user clicked on. I'm not sure if this is a Visual Basic related question or not, but any help would be much appreciated. Thanks. If you want to know what the executable is for the current default email client. This is sto ...Show All

  • hannesaj Adding pictures to a folder increazes the executable size

    Hi all OK. Here is my problem. I have an access database with a table named pictures, which takes the filename of the picture (Not a link to and not the actual picture). When a user select a picture and wants to save it in the database, the programme takes the pictures filename and stores it in the database and also makes a copy in a folder named pictures under the application.startuppath. The thing is that both the database and the executable are getting bigger as more pictures are added. Why is this happening since I don't store any pictures in the database Thanks to all Hi, I am afraid its not that since i have been storing lots of data in other tables and the increase of the database size was minimal (few KBs ...Show All

  • HemantKulkarni How to fill a A4 page when printing a form?

    How can I fill a entiry A4 page, when using Pintform I have a picturebox docked in the form, with a model of a report, and some textbox, that fill some questions of the report. But I can't get the picturebox to completely fill the printed page. Is there any tool that could help me Thanks, Lucas Dear Jonathan, Thanks for your answer, but I am using a PrintForm, because I have some textbox in the same form, that have to be printed together. Using the PrintDocument is quite boring when you have too many itens to add to your printing. So, I would like to do it wih the PrintForm. Adjusting the size of the form, doesn't help me, because there is a maximum size, that isn't enough to fi ...Show All

  • game-maniac R

    I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA Problem Solved! Since I am loading the file into a RichTextBox control I used the following code for the TextChanged Private Sub rtf1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rtf1.TextChanged Dim txt txt ...Show All

  • mognog Two More Questions (VB, VS 05)

    Firstly these two questions should be the last for a while. Q1 : I have a NotifyIcon, with Context Menu but I would like to have my application Close or Minimize to the Notification Area so that a sub-feature can do its thing. I have looked on the MSDN and elsewhere online but cant find actual examples of this is it possible Q2 : As for the sub-feature, its a timer activated process stop (every 10 minutes it stops a process that comes back on its own withing that time period) I have the timer code, and it works, but I would like to have it so that the user has to check a checkbox to start the countdown for the autoclose. No rush on this as I have to further test the rest of the project. Many Thanks Danie ...Show All

  • AlexBB GDI+ How do you change the coordinates to Cartesian

    Hi, I need to change my coordinate orgin from Upper Left to Lower Left and I need to have Y positive moving up the screen instead of down. Said another way I need my graphics to match the caretsian plane. Any sample code in VB would be Great CodeVb Hi all, The way kesim wrote in his post does work. This is what I plan to use Thank you kesim Here is another way to get a path to draw right side up. It does not change the orgin to the cartesian plane but it doesn't have any performance draw back since it is added to the end of your path. All this does is flip the path 180'. 'Flips path over 180' to show right side up Dim translateMatrix As New Matrix translateMatrix.Rota ...Show All

  • Chiarigos null reference in passing array between procedures

    Hi, I'm trying to write a program that grabs data from a text file and populates the array of a structure, but I've been getting a "system.nullreference exception: object reference not set to an instance of an object. at A.Readfile(string file, schedule{} & flight) at A.Main(String{} arg) Sample code:  Public Structure Schedule         'members of the structure         Dim Airline As String Public Sub Main(ByVal arg() As String) Dim flights() As Schedule 'a structure previously defined Dim response As String ReadFile(arg(0), flights ) 'i think flights is causing the problem, but not sure how etc, Sub Readfile(B ...Show All

  • Gangy Focus a minimized form

    Hi... ...I've built an Iterface for a piece of hardware. This Interface has got a section with some information (another form dedicated to it). Now, when I open the info section a new form is opened. If I go back to the main form and I press the button again, which open the Info form, the form is brouhgt on front [used Info.Active ()] but it the Info form was minimized the form is only activated and focus is given to it but is not displayed! Is there any solution to the question Regards Take a look at the WindowState property of the form. This allows you to determine its current state (eg minimised) and alter it if necessary (set to Normal). Hopefully, this is what you were looking for. If ...Show All

  • JimElNino MySQL

    Using MySQL to store my information on my server and I am writing a program to read/write to it. I am using an example on the web click here to setup my Login screen. Im having problems with the Imports MySql.Data.MySqlClient . I have gone to MySQL.com and downloaded the connector but I can't seem to get things working right. What am I doing wrong I understand that for the most part. But you have to declare you Connection and what not in the code and I'm completely confused on that. I just used the drivers from the MySQL site and everything attaches fine for me. I used the ADO.net driver and the Visual Studio Plugin. Need more informat ...Show All

  • OmegaMan Get IP-adress

    Hi friends I'd like to have the code, to show MY IP-adress in a label. Thx in advance Marnik bedankt Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName) Console.WriteLine(CType(h.AddressList.GetValue(0), IPAddress).ToString) Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All

  • rusty_bone VB.Net IDE Crashes Often...

    I am having a problem where my VB.Net IDE crashes often throughout the day... I have a Client/Server application that I am developing, shared between the two is a ClassLibrary I developed. So my Client and Server project both have this ClassLibrary as a Project added to the main Solutions. This way if I am in either the Client or the Server code, I can immediately get access to the ClassLibrary code to make changes if needed. Now, my problem is that several times a day, when I attempt to open a form in Design view, I get a white screen with a pink bar on the top that says: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may ...Show All

  • Nightmare_BE Reading data from a Web Open Connect screen into a VB program

    I would like to read information on a Web Open Connect Screen into a VB program and send appropriate key stroke based on the screen been presented. I am able to send to the screen using SendKeys but I don't seem to be able to manipulate the cursor and read the data at the cursor position. Please can you help many thanks Allan ...Show All

  • dr.acv Edit properties of controls on other forms

    I understand how to change the value of a textbox by making a new form in the code Dim Form2 as New form ... Form2.show() This however does not work for me, i need to edit existing form controls that i make in the designer. So instead of making a new form in the code, i wnat to just edit one i already made. Right now i can only get the code to run when I dim Form1 as new Form I cant dim it as new, then nothing works and i get null erros and such. Any help will be greatly appreciated, I did search the forums and all i found was what i have above and that wont work, atleast i dont believe it will. Well, actually im not a noob to programming, I am new to this concept.  I als ...Show All

01234567891011121314151617

©2008 Software Development Network

powered by phorum