Using the CheckBox Control

The CheckBox control is similar to the RadioButton control in that it presents a list of choices to the user. The difference is that multiple CheckBox controls can be selected at once, while RadioButton controls are mutually exclusive. The CheckBox control is usually a GUI for a Boolean value or expression.

The CheckBox control provides the CheckState property, which determines whether the CheckBox is checked. The CheckState property is actually an enumeration, the CheckState enumeration. Its members are Unchecked, Checked, and Indeterminate. Unchecked and Check are self-explanatory, but the Indeterminate member warrants explanation. The Indeterminate state can be used only when the CheckBox control's ThreeState property ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.