|
-
Sep 17th, 2002, 03:30 AM
#1
Thread Starter
New Member
TreeView and Node Keys
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
-
Sep 17th, 2002, 03:39 AM
#2
Addicted Member
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.
Wind and waves resolves all problems.
-
Sep 17th, 2002, 03:42 AM
#3
Addicted Member
Forgot to say you can use the tag property to similar use
Wind and waves resolves all problems.
-
Sep 17th, 2002, 03:43 AM
#4
Addicted Member
Wind and waves resolves all problems.
-
Sep 17th, 2002, 04:04 AM
#5
Thread Starter
New Member
-
Sep 17th, 2002, 04:39 AM
#6
Thread Starter
New Member
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
-
Sep 18th, 2002, 09:26 PM
#7
Addicted Member
Hi
You can use Treeview1.selectednode.text to get the selected items in treeview
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|