Avatar of LeighWardle
LeighWardle
Flag for Australia asked on

How to highlight a Treeview node so that it remains highlighted when the Treeview loses focus

Hi Experts,

How can I highlight a Treeview node so that the highlight does not dim when the Treeview loses focus?

My VB6 project is attached.
If you run this you will see the highlight on "one".
But if you click the button labelled "click me so Treeview loses focus", the highlight on "one" dims.

Regards,
Leigh
v13.1.5.zip
Visual Basic Classic

Avatar of undefined
Last Comment
vb_elmar

8/22/2022 - Mon
Martin Liss

I don't believe that's possible.
Martin Liss

You could however use an icon to note that it's selected.
Mike Tomlinson

Set the HideSelection() property of the TreeView to False.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
vb_elmar

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question