Click here to Skip to main content
13,049,814 members (71,181 online)
Rate this:
Please Sign up or sign in to vote.
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 8-Jun-11 7:20am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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[^].
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!
SAKryukov 8-Jun-11 17:21pm
True, a 5.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 8 Jun 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100