Avatar of LeighWardle
LeighWardleFlag 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
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

I don't believe that's possible.
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

You could however use an icon to note that it's selected.
Set the HideSelection() property of the TreeView to False.
ASKER CERTIFIED SOLUTION
Avatar of vb_elmar
vb_elmar
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo