TreeView Control - KEY Property

R

Richard Markus

I used to make good use of the KEY property on the NODE
object in a TreeView control in VB 6.0. In VB.NET, I do
not find the KEY property for NODES. How do I get the
same functionality?

More: I could maintain a separate array of node index/key
name that I could write a function to convert a key string
to an existing index, but I was wondering if it was built
in somewhere and I was not finding it.

Thanks

Richard Markus
Octagon Software and Consulting, Inc.
Houston, Texas
 
H

Herfried K. Wagner [MVP]

* "Richard Markus said:
I used to make good use of the KEY property on the NODE
object in a TreeView control in VB 6.0. In VB.NET, I do
not find the KEY property for NODES. How do I get the
same functionality?

More: I could maintain a separate array of node index/key
name that I could write a function to convert a key string
to an existing index, but I was wondering if it was built
in somewhere and I was not finding it.

There is no built-in solution. I would suggest to store (key,
'TreeNode') pairs in a 'Hashtable'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top