You could set up a loop within this elseif statement to loop though all controls within this tab.
Something like
...ElseIf Me.TabCtrl1.TabPages(0).Controls(i).GetType() Is GetType(System.Windows.Forms.TabControl) Then
Dim c As Control
Dim t As TabControl
Dim p As TabPage...
You could read each line of the text file into a string and then use string.indexOf to test whether a word is present.
Eg.
Dim strLine As String
Dim s As New System.IO.FileStream("filename", IO.FileMode.Open)
Dim sr As New System.IO.StreamReader(s)
While...
Not sure, but have you checked the view property of the listview control. I normally set this to details, which shows a list of items contained within.
Simon
You can use the DataRelation class.
Something like this-
'Create a new DataRelation
Dim rel As New DataRelation(strRelationName, dsDataSet.Tables("Table1")).Columns("Primary Key"), dsDataSet.Tables("Table2").Columns("Foreign Key"), False)
'Add the Relation to the DataSet...
You could use the StreamReader.ReadToEnd method which will return all of the files contents to a string. Then use the String.Split function on this string and pass in the ~ as separator. This function will return each 1234567890 etc. into an array of strings.
Hope this helps!
Simon
Does anyone know how to change a Crystal Report's data source at runtime?
At design time I have the report pointing at an XML file and need to change this to other XML files (of the same schema) while the program is running.
Thanks
Simon
I'm trying to send an email automatically using the Outlook 10.0 object library reference in VB.net
I'm using the following code:
Public Class OutlookMail
Dim oApp As Outlook.Application
Dim oNameSpace As Outlook.NameSpace
Dim oOutboxFolder As Outlook.MAPIFolder
Function...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.