C # as a tree

I am using treeview in my application (C #, gui). I want to hide the checkboxes in 'Node 1' and in 'Node 1.1.1'. How should I do it? My tree looks like this:

TreeView 1

   -Node 1

      - Node 1.1

              -Node 1.1.1

                   -Node 1.1.1.A

                   -Node 1.1.1.B

              -Node 1.1.2

                   -Node 1.1.2.A 

I use:

treeview1.checkboxes = true;

to show all the checkboxes, but how can I hide someone?

+3
source share
2 answers

Unfortunately no, not without subclassing TreeView and overriding some control picture.

The answer to this question should contain the necessary information: How can I manage checkboxes in .Net Forms.TreeView?

+5
source

- : WinForms TreeView node? API Win32.

. , , tri-state. CodeProject, .

+2

Source: https://habr.com/ru/post/1780964/


All Articles