Click here to Skip to main content
15,885,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone

For the check boxes for the in the windows form application, I wonder if there is a 3rd state I could use. For example, if the parent is checked then all of it's childs are checked. if the parent is unchecked then all of it's child are unchecked. But if some of the childs are checked, and the others aren't, I want to have the parent be in a 3rd state. Stating that some of it's children are checked.

Thanks for the time and apperciation.
Posted

1 solution

It's not that simple. The standard TreeView control in the ToolBox doesn't support doing this natively, so you have to make your own, or find a third party control that does this for you.

There's a couple of CP articles that cover doing something like this here[^] and here[^].
 
Share this answer
 
Comments
Member 7975239 8-Jun-11 17:05pm    
Thanks, I just had to find out how to use and add componants to the windows form. Thanks much!
Sergey Alexandrovich Kryukov 8-Jun-11 17:21pm    
True, a 5.
--SA
Monjurul Habib 8-Jun-11 18:53pm    
nice explanation with links, my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900