Click to See Complete Forum and Search --> : VB - A demonstration of how to generate unique keys for a TreeView
MartinLiss
Feb 18th, 2003, 04:44 PM
The key of a TreeView node must be unique, and the attached little project demonstrates how to do that.
jPaulB
Apr 11th, 2007, 01:35 PM
Thanks for all the help, people... but I am still missing something... something critical.
If all of the keys are all unique... how do the child-elements know which parent to attach to?
-Paul-
MartinLiss
Apr 11th, 2007, 01:38 PM
I believe you are confusing Relative (the 1st parameter of .Add) with Key, the 3rd parameter. It's the former that "tells" the children where to attach.
koolsid
Sep 10th, 2009, 01:36 PM
Hmm I never came across this thread before...
Ok here is one more way to it...
http://www.vbforums.com/showpost.php?p=3604438&postcount=5
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.