How to make checkboxes invisible for the Treeview Root nodes

LeighWardle
LeighWardle used Ask the Experts™
on
Hi Experts,

Is there a way of making the checkboxes invisible for the Root nodes?

My sample project is attached.

Regards,
Leigh
1.2.zip
Comment
Watch Question

Do more with

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

Commented:
- One approach would be to set Checkboxes Property to False and
to use an ImageList object and images in it to simulate checkboxes checked and unchecked
state in Subnodes.
- Then in TreeView1_NodeClick event toggle Node.Image between checked and unchecked images.
Top Expert 2012
Commented:
I've attached the modified project below
(remove .txt from .ico file names).

I'm pretty sure there's no other way to do it.
1.2-modified.zip

Author

Commented:
Thanks, eemit.

Many, many thanks for providing the sample project.

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