- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hello! I have program that consists of multiple forms. Each of the forms share a common variable which I stored in the main form. But to access the variable from another form, I have to type something quite long like this: MainForm.CommonVar.Function(arg1, arg2, arg3, arg8) I use this many times … | |
Re: Just clear the dataset and then re-fill it. | |
Re: Try changing the code in frmAddress to: [CODE=VB.NET] Public Shared strName As String Dim DataForm As New frmData Private Sub lblContact_SelectedIndexChanged _ (ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles lblContact.SelectedIndexChanged Me.lblContact.Text = strName End Sub [/CODE] and code for frmDate to: [CODE=VB.NET] Private Sub Button1_Click(ByVal sender … | |
Re: Take a look at [URL="http://www.homeandlearn.co.uk/NET/vbNet.html"]this tutoria[/URL]l, you may have an idea about what a beginner tutorial should have. | |
Re: Put the date in a variable first and then compare them. [Code=VB.NET] Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load Dim dateFrom As Date = New Date(2008, 12, 1) Dim dateTo As Date = New Date(2008, 12, 5) Dim dateAttend As Date = New … | |
Re: This code may help: [CODE=VB] Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load Dim filename As String = "afile.txt" ' Your file name/path Dim filereader As New System.IO.StreamReader(filename) ' Open the file for reading Dim readline As String Dim data As String Dim dataparts(1) … | |
Re: Try using the shortcut key to the Design View(which is Shift+F7). | |
Hello, How can I create a multi-field list box like in the picture in the link below in Visual Studio. NEo4 [URL="http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png"]http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png[/URL] |