I'd like to know if there is something like the unique keys for the nodes (VB6) in a treeview in VB.NET.
I don't want to crawl thorugh the whole tree to find a node by its name (sometimes there can be more than one with the same name).
Johnny
Printable View
I'd like to know if there is something like the unique keys for the nodes (VB6) in a treeview in VB.NET.
I don't want to crawl thorugh the whole tree to find a node by its name (sometimes there can be more than one with the same name).
Johnny
Unfortunately there is not a unique key in vb.net you have to use fullpath. There is a article about adding additional information to the treenode which i'll try and find for you.
Forgot to say you can use the tag property to similar use
thx for really fast help
Another question...
There are Collections...
Dim F as Collection (for example)
Here you can add Items with Keys.
F.Add(...)
I tried to use this with a TreeView, but the primary problem still not solved :-) how to identify the selected Node.
In this case Microsoft changed the TreeView to a stupid not programmer friendly control.
Johnny
Hi
You can use Treeview1.selectednode.text to get the selected items in treeview