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