-
treeview w/ no key
Hello all.. the new treeview class in the .net framework no longer has the all important 'Key' value for each node that uniquely identifies each node. I am rewriting an existing application from VB6 to vb.net. This application relied heavily on the key attribute. Does anyone have suggestions on how i can possibly merge controls, use a different control or maybe utilize an array to get around this issue?
Thanks for any input you can provide
-mcd
-
Another suggestion. Would I be able to create a new class that inherits form the TreeNode class and add in a key value to it?
Thanks,
-mcd
-
the treenode object just uses index now, but if you need some way to sort of emulate the key, you can use the Tag property of TreeNode object. Tag returns an object so you can place virtually any object, string, numbers, other classes, into it.
-
Thank you Cander.. you have come to the rescue again! Ill play around with this idea for a little bit.
Later
-mcd
-
:D Good luck. Hope that works out.