Search results for query: *

  1. A

    Access the Registry

    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.
  2. A

    Getting MySQL databases to combobox

    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!
  3. A

    pick numbers from a string

    Man! RegEx's rock!
  4. A

    arrays and string

    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...
  5. A

    arrays and string

    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...
  6. A

    communicating with winamp

    Use this: Dim p As New Process() p.Start("c:\Playlist.m3u") Back in VB6 we used ShellExecute API but the above works with .NET.
  7. A

    Getting user name and extra info

    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...
  8. A

    how to ADO in .Net

    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...
  9. A

    how to ADO in .Net

    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.
  10. A

    Absolute Beginner - need some help

    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...
  11. A

    Looping using a lable and a timer

    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?
  12. A

    VB.Net and SQL Server 2000

    Yeap this issue would involve some threading...
  13. A

    listbox to database

    You can/must data-bind your listbox to a dataTable and then when you are done you can call the Update() method to update the changes in your database.
  14. A

    Close and compact MS-Access Backend

    Check your connections object State property.
  15. A

    Adding a Treeview Node to a Specific Node

    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 =...
  16. A

    .Net Framework Information Needed

    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.
  17. A

    MS word and VBA

    If I remember correctly you can use this: Selection.Tables(1).Select Not quite sure though.
  18. A

    Treeview Search

    JohnH, You are actually correct. My code will only go as deep as first level child nodes.
  19. A

    Top Sales Help Required

    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...
  20. A

    Treeview Search

    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...
Back
Top