Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...