gladiator83x
Member
- Joined
- Jan 15, 2008
- Messages
- 11
- Programming Experience
- Beginner
Hi All,
I am trying to make every child node in my treeview a hyperlink. I changed to "HotTracking" property from False to true, but that just underlined every child node which contains a file name, and it does not allow me to open the file. I was wondering if someone could point me in the right direction. I am using the code below. Thanks a bunch.
Dim folders2 As New List(Of String)
folders2.Add("2.0 Test Setup")
For Each folder2 As String In folders2
Dim dir2 As New IO.DirectoryInfo(folder2)
Dim node2 As TreeNode = Me.TreeView1.Nodes.Add(dir2.Name)
For Each file2 As IO.FileInfo In dir2.GetFiles
node2.Nodes.Add(file2.Name & " .................... " & file2.LastWriteTime)
Next
Next
I am trying to make every child node in my treeview a hyperlink. I changed to "HotTracking" property from False to true, but that just underlined every child node which contains a file name, and it does not allow me to open the file. I was wondering if someone could point me in the right direction. I am using the code below. Thanks a bunch.
Dim folders2 As New List(Of String)
folders2.Add("2.0 Test Setup")
For Each folder2 As String In folders2
Dim dir2 As New IO.DirectoryInfo(folder2)
Dim node2 As TreeNode = Me.TreeView1.Nodes.Add(dir2.Name)
For Each file2 As IO.FileInfo In dir2.GetFiles
node2.Nodes.Add(file2.Name & " .................... " & file2.LastWriteTime)
Next
Next