|
-
Nov 14th, 2009, 07:56 PM
#1
Thread Starter
Member
[RESOLVED] How to have the path of a directory from a treeView
Hi ,
I am using this code to have all the subdirectories in c:\program files and i am listing them on a treeView
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim di As DirectoryInfo = New DirectoryInfo("c:\program files")
Dim dirs As DirectoryInfo() = di.GetDirectories()
Dim diNext As DirectoryInfo
For Each diNext In dirs
Dim C As TreeNode = TreeView1.Nodes.Add(diNext.Name)
Next
End Sub
my next step is once i doubleclick on a node in the treeview , i get on a msgbox the path of it"s directory
Can someone help me doing that
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|