* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
2.5 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| CheckBox Control Overview | 03/30/2017 |
|
|
085a4e0b-9046-473f-b141-d0edddfb2ebb |
CheckBox Control Overview (Windows Forms)
The Windows Forms xref:System.Windows.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 xref:System.Windows.Forms.GroupBox control. This is useful for visual appearance and also for user interface design, since grouped controls can be moved around together on the form designer. For more information, see Windows Forms Data Binding and GroupBox Control.
The xref:System.Windows.Forms.CheckBox control has two important properties, xref:System.Windows.Forms.CheckBox.Checked%2A and xref:System.Windows.Forms.CheckBox.CheckState%2A. The xref:System.Windows.Forms.CheckBox.Checked%2A property returns either true or false. The xref:System.Windows.Forms.CheckBox.CheckState%2A property returns either xref:System.Windows.Forms.CheckState.Checked or xref:System.Windows.Forms.CheckState.Unchecked; or, if the xref:System.Windows.Forms.CheckBox.ThreeState%2A property is set to true, xref:System.Windows.Forms.CheckBox.CheckState%2A may also return xref:System.Windows.Forms.CheckState.Indeterminate. In the indeterminate state, the box is displayed with a dimmed appearance to indicate the option is unavailable.