Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView Control

Status
Not open for further replies.

simran1

Programmer
Apr 23, 2002
82
US
Hi,

Can we assign unique values to the nodes in a treeview control, to use them as identification, like itemdata in combo box control.
 
Hi Maroney,

OK, now i have set my tag property. How do i read the tag property of any particular node.
 
Hi,
What is the difference between tag and key properties
 
To retrieve the tag of the selected item you can do:

Treeview1.Selectedtem.Tag

The difference between the two...Tag can be used to set any old values on each node but doesn't help in finding specific nodes in a large tree. The Key can be used to give a 'name' to a node so you can easily locate the specific node at a later stage.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top