archer_coal Posted June 10, 2003 Posted June 10, 2003 can you get a file path from a treeview without all the file info along with it? example using double click 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? Quote
Leaders dynamic_sysop Posted June 11, 2003 Leaders Posted June 11, 2003 what exactly have you got stored in the treeview? are you wanting to say click on an item like this : "i'm some text in a treeview" and get back this : "i'm some text" Quote
archer_coal Posted June 11, 2003 Author Posted June 11, 2003 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.