Tag Archives: CheckBox

Allow limited CheckBox selection in C#

Normally the user can check or uncheck any CheckBox independently of any other selections. This post shows how you can allow limited CheckBox selection. In this example the user can select up to 2 of the CheckBoxes. Whenever the user … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , | Leave a comment

Use a tristate CheckBox to show partial selections in C#

The example Use a tristate CheckBox in C# explains how to let the user click a tristate CheckBox. This example demonstrates a particularly common usage: allowing the user to select some, all, or none of a set of other options. … Continue reading

Posted in controls | Tagged , , , , , , , , , , , | Leave a comment

Use a tristate CheckBox in C#

Normally a CheckBox is either checked or unchecked. You can catch the CheckedChanged event handler to learn when the control’s value has changed and you can use its Checked property to get its current value. A CheckBox can also display … Continue reading

Posted in controls | Tagged , , , , , , , , | Leave a comment

Make a checked GroupBox in C#

One useful control that’s missing from Visual Studio’s toolbox is a checked GroupBox. The control displays a CheckBox in its caption. When the user unchecks the CheckBox, all of the controls in the group are disabled. While there is no … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , | 6 Comments