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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to highlight a node programmatically in a treeview control 1

Status
Not open for further replies.

Ime532

IS-IT--Management
Apr 1, 2004
89
US
I've written code to find a specific node and now I want to highlight it as if the user selected it. I've tried this:

trvCalls.SelectedNode = tnCallNode

But it does not highlight the node. I've searched the FAQ and this forum and didn't find anything that worked. Can someone point me in the right direction? Thanks in advance!
 
There is probably a .HideSelection on the TreeView to set to false.
 
And that's why riverguy is THE MAN!!!! Nice man, nice. I bow before you humbly. I'm still learning all the ins and outs of these controls (VB6 programmer).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top