So I figured out the treeview and now it works just great... I can traverse my hierarchy just fine... now how can I use this?
Is the treeview just a visual, or can I actually utilize the data I am clicking on within?
What I want to do is to be able to choose a specific hierarchical path and once I stop (i.e. highlight a specified point in the TreeView) have the path be posted in a textbox within the Form that the TreeView is on... Seems easy enough but I can't seem to figure out how to post anything in terms of output from the TreeView...
As an Example... if the TreeView was akin to a folder structure... If the user clicked/drilled down three levels, once for "C:", once for "All Documents" and once for "Gary's Documents" and then highlight "Gary's Documents" (within the TreeView)... I am looking for some code to post the string output to a textbox that might look something like:
"C:\All Documents\Gary's documents"
Does anyone know how utilize the TreeView to do something like this, or can someone point me in the right direction?
Everything I look up online talks about how to actually populate the treeview itself... I have already done this... Now I am trying to figure out how I can get some hierarchical output from this control...
Nothing I saw on the forum talked about this issue... but admittedly I couldn't read all the posts on TreeViews, as there were a lot.
Thanks for any help (in advance)!
Is the treeview just a visual, or can I actually utilize the data I am clicking on within?
What I want to do is to be able to choose a specific hierarchical path and once I stop (i.e. highlight a specified point in the TreeView) have the path be posted in a textbox within the Form that the TreeView is on... Seems easy enough but I can't seem to figure out how to post anything in terms of output from the TreeView...
As an Example... if the TreeView was akin to a folder structure... If the user clicked/drilled down three levels, once for "C:", once for "All Documents" and once for "Gary's Documents" and then highlight "Gary's Documents" (within the TreeView)... I am looking for some code to post the string output to a textbox that might look something like:
"C:\All Documents\Gary's documents"
Does anyone know how utilize the TreeView to do something like this, or can someone point me in the right direction?
Everything I look up online talks about how to actually populate the treeview itself... I have already done this... Now I am trying to figure out how I can get some hierarchical output from this control...
Nothing I saw on the forum talked about this issue... but admittedly I couldn't read all the posts on TreeViews, as there were a lot.
Thanks for any help (in advance)!