Hi all, I'm trying to teach my self to use the treeview control and i'm having a little trouble, after about 2 hours of searching i resorted to begging for help.... Help!
I have put this code together so far and it works fine so far to start the treeview list of all the folders/files on my C: the BeforeExpand event removes the blank entry and does the recursive loading of all the sub folders/files... this so far is working perfectly.
What I want to do, and whats causing me to go bald, is add my F: G: and H: into the list so they can be displayed as well....
What code do I put in to add a 2nd, 3rd and 4th and so on root entry into the treeview control?
Dim oNode As New System.Windows.Forms.TreeNode
aNode.ImageIndex = 1
aNode.SelectedImageIndex = 1
aNode.Text = "C:"
Catch ex As Exception
MsgBox("Error Starting List")