NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CheckBox Control

The Win Forms CheckBox control indicates whether a particular condition is on or off. It is commonly used to present a Yes/No or True/False selection to the user. You can use check box controls in groups to display multiple choices from which the user can select one or more.

The check box control is similar to the radio button control in that each is used to indicate a selection that is made by the user. They differ in that only one radio button in a group can be selected at a time. With the check box control, however, any number of check boxes may be selected.

A check box may be connected to elements in a database using simple data binding. Multiple check boxes may be grouped using the GroupBox control. This is useful for visual appearance.

The CheckBox control has two important properties, Checked and CheckState. The Checked property returns either True or False. The CheckState property returns either CheckState.Checked or CheckState.Unchecked; or, if the ThreeState property is set to True, CheckState may also return CheckState.Indeterminate.

See Also

Setting Options with CheckBox Controls | Responding to CheckBox Clicks