treeview listview question

archer_coal

Well-known member
Joined
Apr 4, 2003
Messages
96
can you get a file path from a treeview without all the file info along with it?

example using double click

Code:
Private Sub TreeView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.DoubleClick
    
Dim pth as String
 pth  = TreeView1.SelectedNode.Text

msgbox(pth)

End Sub

Returns the full path and file size in bytes
i just want the path
any help?
 
re

its a directory tree structure

user clicks on a file i want it to return the file path without the file size
i may just need to parse the Path string but it seems a bit sloppy to me to need to do that.
Or should i be using a listview and if so how do i populate a listview with files from a treeview?
 
Back
Top