Treeview - locate node from fullpath

  • Thread starter Thread starter copyco
  • Start date Start date
C

copyco

Is there a way to locate a node on the Treeview by a node's fullpath
property? Thanks.
 
* copyco said:
Is there a way to locate a node on the Treeview by a node's fullpath
property?

The 'FullPath' sometimes isn't unique for each node. Different nodes
can have the same 'FullPath'.
 
Oh yeah. So I guess the answer is no. I used to be able to locate
treenodes in VB6 with string values because the nodes were indexed with
key values in string type, so I could make the keys the same as the
node's path. I wish I couldn't do something similar in VB.NET.
 
* copyco said:
Oh yeah. So I guess the answer is no. I used to be able to locate
treenodes in VB6 with string values because the nodes were indexed
with key values in string type, so I could make the keys the same as
the node's path. I wish I couldn't do something similar in VB.NET.

You can add all the nodes to a 'Hashtable' by using a unique name as
key. Then you can access the nodes by key easily.
 
Thank you very much. I've never heard of a 'Hashtable.' I will have to
research it. It will be something new for me to learn. Thanks.
 
* copyco said:
Thank you very much. I've never heard of a 'Hashtable.' I will have
to research it. It will be something new for me to learn.

If you have any further questions on this topic, feel free to post them
here.

:-)
 
Back
Top