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!

Accessing Treeview nodes

Status
Not open for further replies.

JohnLanc

Technical User
May 21, 2003
17
US
I have a database form containing a treeview control. one of the textboxes on the form contains the node.key property of the last node to clicked on. I want to be able to change properties of the node by using the node.key in the text box but I don't know how to get the handle for the node itself from this node key.

For example by checking a check box I want to be able to change the node.image property of the node whose node.key property is stored in textbox.

Please help.

Thanks,
John
 
That would be:
tvwMyTree.Nodes(Me![txtNodeName]).Image = newvalue

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top