简体   繁体   中英

How to set checked to false if check state is indeterminate

I need a check box to report False in the Checked property if CheckState property is Indeterminate. Is there a way to achieve this?

只需验证CheckState属性:

        bool reallyChecked = checkBox1.CheckState == CheckState.Checked;

您可以通过从CheckBox派生实现此目的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM