1 Attachment(s)
VB - A demonstration of how to generate unique keys for a TreeView
The key of a TreeView node must be unique, and the attached little project demonstrates how to do that.
Re: VB - A demonstration of how to generate unique keys for a TreeView
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-
Re: VB - A demonstration of how to generate unique keys for a TreeView
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.
Re: VB - A demonstration of how to generate unique keys for a TreeView
Hmm I never came across this thread before...
Ok here is one more way to it...
http://www.vbforums.com/showpost.php...38&postcount=5