We help IT Professionals succeed at work.

Can I hide checkboxes on selected nodes in an MS treeview control?

54 Views
Last Modified: 2019-03-08
Working with MS treeview control using VBA.  Is there any way to disable the checkboxes on some treeview nodes but not on others?    I've read some posts that say checkboxes are all or nothing.  

If a node has children, I don't want to show a checkbox.  I want them to first expand the tree, then check one or more boxes only at the child level.  

I've seen many posts about this question, but most of them have C# or VB solutions, or a custom-written treeview control.  I'd prefer not to have to go that custom.  Looking for a solution I can implement with only VBA.

Is this possible, or am I barking up the wrong tree(view)?
Comment
Watch Question

Consulting
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION