Highlight missing from TreeView

LeighWardle
LeighWardle used Ask the Experts™
on
Hi Experts,

How can I get the highlight to stay on the chosen item in the Treeview?
My sample project is attached.

Regards,
Leigh
v13.1.zip
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Please add the following line to the end of the Sub tvTreeView_NodeClick (frmTreeview) :

tvTreeView.SetFocus
Commented:
And to keep the Treeview node highlighted when the TreeView control does not have the focus you can do the following :

In the IDE go to the Properties window of the treeview (press F4). There should be a property called "HideSelection". Set it to False.

Author

Commented:
Thanks, vb_elmar.

Regards,
Leigh

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial