|
-
Aug 15th, 2002, 08:59 AM
#1
Thread Starter
Hyperactive Member
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
-
Aug 15th, 2002, 09:08 AM
#2
Thread Starter
Hyperactive Member
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
[vbcode]
'*****************************
MsgBox "MCD :: [email protected]", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
-
Aug 15th, 2002, 09:26 AM
#3
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.
-
Aug 15th, 2002, 09:45 AM
#4
Thread Starter
Hyperactive Member
Thank you Cander.. you have come to the rescue again! Ill play around with this idea for a little bit.
Later
-mcd
[vbcode]
'*****************************
MsgBox "MCD :: [email protected]", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
-
Aug 15th, 2002, 09:46 AM
#5
Good luck. Hope that works out.
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
|