Since you are on .NET 2.0 take a look at the 'My' namespace it is provided.
I think its My.Computer.Registry...not quite sure but its there somewhere definitely.
If I remember correctly there is a "SHOW DATABASES" query you can run on MySQL which will return the names that you want.
Use a dataReader and find out? I would do it for you but I have to go!
Here's an example:
Dim a As Integer = 5
Dim b As Integer = 6
Dim c As Integer = 0
Dim str As String
str = a.ToString & b.ToString & c.ToString
str = Microsoft.VisualBasic.StrReverse(str)
MsgBox(str)
I am unaware if there is (I assume...
1) Read tutorials about arrays in VB.NET such as this one.
2)
Dim txtStr As String = TextBox1.Text
For i As Integer = 0 To Len(txtStr) - 1
MsgBox(txtStr.Chars(i))
Next
3) The Mod function returns the remainder of a division. Try Msgbox(3 Mod 2) to see the...
Since you are in .NET 2.0 and VS 2005 you could use the 'My' namespace that provides useful information.
Specifically:
My.Computer.FileSystem.SpecialDirectories.MyDocuments 'The MyDocuments will return a string of where the My Documents path is for the current logged in user...
Well here's an example that uses ADO.NET and a dataAdapter. It would be better to use a dataReader as its faster for this command. Keep in mind a dataReader is used as read-forward-only for records whereas the dataAdapter gives a memory representation of the database locally (use for updates...
You must learn and use ADO.NET. There is no such thing as a recordSet in ADO.NET.
What you can do though is import ADO 2.x object and then you can run this code through VB.NET.
Keep in mind ADO.NET is many times better than ADO 2.x.
You should use a database for that. Access, SQL Server or Oracle to name a few.
Then you should connect, update, execute search and insert records by using ADO.NET.
It would make your program run better, more organized and you would not have the need to play around with TXT files which in the...
I am having some trouble understanding what you are trying to do...
What do you mean by loop down etc? Are you trying to create a 'Credits' form that shows text that slides?
http://www.vbdotnetforums.com/showthread.php?t=13278&highlight=treeview
Visit this link and ignore my solution as it will only go as deep as the first child. JohnH's solution will give you any node you are looking for.
Your code does not work because this line:
tNode =...
Hmm, well if it has to do with databases make sure you know your ADO.NET stuff and what are the differences with ADO 2.x.
Windows Forms, web apps, ASP.NET, new stuff in .NET 2.0, databinding, SQL, Encryption (RSA etc).
Those are only a few.
There you go:
Protected Const connString As String = "Data Source=YourDataSource;Initial Catalog=SalesDB;Integrated Security=SSPI;"
Protected sqlCon As New SqlClient.SqlConnection(connString)
Protected sqlCom As New SqlClient.SqlCommand()
Private Sub Button1_Click(ByVal...
Here is a sub I made for you. The code below searchs in all parentNodes and you have the option to specify if you want to look at child nodes or not (code will run faster if you do not search in childNodes).
Note: The below code goes as deep as ONE level of child nodes.
Sub...
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.