Selecting treeview node via code

D

Dale Fye

I have some code that expands and collapses nodes of a treeview. When the
expansion/collapse code finishes, I want the node that was selected prior to
this operation to be selected again, and have it highlighted.

Using code like:

tvx.nodes(intIndex).selected = true

works to select the node, but it is not highlighted in the tree view until I
do something else in the treeview. I have tried refreshing the tree, and
that doesn't work.

Any recommendations
 

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