3 types derived from CheckBox
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxTests.cs (2)
632public class SubCheckBox : CheckBox 717private class TestCheckBox : CheckBox
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
111public class MyCheckBox : CheckBox
88 instantiations of CheckBox
Accessibility_Core_App (8)
CommonControl1.Designer.cs (3)
49this.checkBox3 = new System.Windows.Forms.CheckBox(); 50this.checkBox2 = new System.Windows.Forms.CheckBox(); 51this.checkBox1 = new System.Windows.Forms.CheckBox();
ContainerControls.Designer.cs (2)
51this.checkBox2 = new System.Windows.Forms.CheckBox(); 57this.checkBox1 = new System.Windows.Forms.CheckBox();
ContainerControls2.Designer.cs (2)
42this.checkBox2 = new System.Windows.Forms.CheckBox(); 48this.checkBox1 = new System.Windows.Forms.CheckBox();
DataBindingExample.Designer.cs (1)
36this.checkBox1 = new System.Windows.Forms.CheckBox();
PresentationUI (4)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
54this.checkBoxValidUntil = new System.Windows.Forms.CheckBox(); 57this.checkBoxPermissionsContact = new System.Windows.Forms.CheckBox();
MS\Internal\Documents\SigningDialog.Designer.cs (2)
37_addDigSigCheckBox = new System.Windows.Forms.CheckBox(); 39_addDocPropCheckBox = new System.Windows.Forms.CheckBox();
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
18_checkBox = new CheckBox
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (6)
80_noneCheckBox = new CheckBox(); 81_allCheckBox = new CheckBox(); 82_topCheckBox = new CheckBox(); 83_bottomCheckBox = new CheckBox(); 84_rightCheckBox = new CheckBox(); 85_leftCheckBox = new CheckBox();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
265_frozenCheckBox = new CheckBox(); 266_visibleCheckBox = new CheckBox(); 267_readOnlyCheckBox = new CheckBox();
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
130_checkBoxUseValidatingType = new CheckBox();
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
122_ctrlCheckBox = new CheckBox(); 123_altCheckBox = new CheckBox(); 124_shiftCheckBox = new CheckBox();
System.Windows.Forms.Tests (38)
CheckedListBoxTests.cs (3)
369control.Items.Add(new CheckBox(), false); 386control.Items.Add(new CheckBox(), false); 396box.Items.Add(new CheckBox(), false);
SerializableTypesTests.cs (1)
292tableLayoutPanel.Controls.Add(new CheckBox() { Name = "checkBox11" }, 1, 1);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (15)
28using CheckBox checkBox = new(); 39using CheckBox checkBox = new() 55using CheckBox checkBox = new(); 68using CheckBox checkBox = new(); 79using CheckBox checkBox = new() 96using CheckBox checkBox = new(); 121using CheckBox checkBox = new() { CheckState = checkState }; 157using CheckBox checkBox = new() 178using CheckBox checkBox = new() 193using CheckBox checkBox = new() 213using CheckBox checkBox = new() 232using CheckBox checkBox = new(); 243using CheckBox checkBox = new(); 261using CheckBox checkBox = new() { ThreeState = true }; 298using CheckBox checkBox = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
170{ new CheckBox(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\CheckBoxRendererTests.cs (1)
160protected override ButtonBase CreateButton() => new CheckBox();
System\Windows\Forms\CheckBoxTests.cs (15)
150using CheckBox control = new() 167using CheckBox control = new(); 175using CheckBox box = new() 187using CheckBox control = new() 204using CheckBox control = new(); 213using CheckBox box = new() 269using CheckBox control = new() 286using CheckBox control = new(); 424using CheckBox control = new() 441using CheckBox control = new(); 449using CheckBox box = new() 460using CheckBox box = new(); 470using CheckBox box = new(); 480using CheckBox box = new(); 624using CheckBox box = new();
System\Windows\Forms\ControlTests.cs (2)
887using CheckBox checkBox1 = new() { Checked = true }; 889using CheckBox checkBox2 = new() { Checked = true };
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
602_useCustomCursorsCheck = new CheckBox();
WinFormsControlsTest (23)
Buttons.cs (1)
71checkBox = new CheckBox
Calendar.Designer.cs (2)
46this.showWeekNumbersCheckBox = new System.Windows.Forms.CheckBox(); 47this.showTodayCheckBox = new System.Windows.Forms.CheckBox();
ComboBoxesWithScrollBars.Designer.cs (6)
50this.integralHeightCheckBox1 = new System.Windows.Forms.CheckBox(); 51this.integralHeightCheckBox2 = new System.Windows.Forms.CheckBox(); 52this.integralHeightCheckBox3 = new System.Windows.Forms.CheckBox(); 54this.useDifferentHeightsCheckBox1 = new System.Windows.Forms.CheckBox(); 55this.useDifferentHeightsCheckBox2 = new System.Windows.Forms.CheckBox(); 56this.useDifferentHeightsCheckBox3 = new System.Windows.Forms.CheckBox();
CustomComCtl32Button.cs (2)
23new CheckBox() 33new CheckBox()
MdiChild.Designer.cs (6)
36this.chkSetParentMenustrip = new System.Windows.Forms.CheckBox(); 37this.chkSetMenustrip = new System.Windows.Forms.CheckBox(); 38this.chkAddParentMenustrip = new System.Windows.Forms.CheckBox(); 39this.chkAddMenustrip = new System.Windows.Forms.CheckBox(); 40this.chkChildAlign = new System.Windows.Forms.CheckBox(); 41this.chkRightToLeft = new System.Windows.Forms.CheckBox();
MultipleControls.Designer.cs (2)
45this.checkBox1 = new System.Windows.Forms.CheckBox(); 46this.checkBox2 = new System.Windows.Forms.CheckBox();
ScrollBars.Designer.cs (1)
40this.chbRightToLeft = new System.Windows.Forms.CheckBox();
TrackBars.Designer.cs (3)
38this.chbRightToLeft = new System.Windows.Forms.CheckBox(); 39this.chbRightToLeftLayout = new System.Windows.Forms.CheckBox(); 40this.tickstyleNone = new System.Windows.Forms.CheckBox();
136 references to CheckBox
Accessibility_Core_App (8)
CommonControl1.Designer.cs (3)
729private System.Windows.Forms.CheckBox checkBox3; 730private System.Windows.Forms.CheckBox checkBox2; 731private System.Windows.Forms.CheckBox checkBox1;
ContainerControls.Designer.cs (2)
876private System.Windows.Forms.CheckBox checkBox2; 882private System.Windows.Forms.CheckBox checkBox1;
ContainerControls2.Designer.cs (2)
464private System.Windows.Forms.CheckBox checkBox2; 470private System.Windows.Forms.CheckBox checkBox1;
DataBindingExample.Designer.cs (1)
300private System.Windows.Forms.CheckBox checkBox1;
DesignSurface (6)
MainForm.cs (6)
142CheckBox checkbox1 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 60)); 144CheckBox checkbox2 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 85)); 148CheckBox checkbox3 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 110));
PresentationUI (4)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
419private System.Windows.Forms.CheckBox checkBoxValidUntil; 422private System.Windows.Forms.CheckBox checkBoxPermissionsContact;
MS\Internal\Documents\SigningDialog.Designer.cs (2)
294private System.Windows.Forms.CheckBox _addDigSigCheckBox; 295private System.Windows.Forms.CheckBox _addDocPropCheckBox;
System.Windows.Forms (16)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
45if (Control is CheckBox checkBox)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
26protected new CheckBox Control => (CheckBox)base.Control;
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (7)
11public class CheckBoxAccessibleObject(Control owner) : ButtonBaseAccessibleObject((owner is CheckBox owningCheckBox) 13: throw new ArgumentException(string.Format(SR.ConstructorArgumentInvalidValueType, nameof(owner), typeof(CheckBox)))) 15public override string DefaultAction => this.TryGetOwnerAs(out CheckBox? owner) 23public override AccessibleStates State => !this.TryGetOwnerAs(out CheckBox? owner) 32internal override ToggleState ToggleState => this.TryGetOwnerAs(out CheckBox? owner) 59if (!this.IsOwnerHandleCreated(out CheckBox? owner)) 77if (this.TryGetOwnerAs(out CheckBox? owner))
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
40/// Initializes a new instance of the <see cref="CheckBox"/> class.
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
337/// Raises the <see cref="CheckBox.CheckedChanged"/> event.
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (2)
115/// Occurs when the value of the <see cref="CheckBox.Checked"/> property changes. 125/// Occurs when the value of the <see cref="CheckBox.CheckState"/> property changes.
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
318/// Occurs when the value of the <see cref="CheckBox.Checked"/> property changes. 328/// Occurs when the value of the <see cref="CheckBox.CheckState"/> property changes.
System.Windows.Forms.Design (28)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
13private readonly CheckBox _checkBox;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (18)
16private CheckBox _allCheckBox; 19private CheckBox _bottomCheckBox; 20private CheckBox _leftCheckBox; 21private CheckBox _noneCheckBox; 23private CheckBox _rightCheckBox; 27private CheckBox _topCheckBox; 185CheckBox senderCheckBox = (CheckBox)sender!; 206CheckBox senderCheckBox = (CheckBox)sender!; 227CheckBox senderCheckBox = (CheckBox)sender!; 248CheckBox senderCheckBox = (CheckBox)sender!; 269CheckBox senderCheckBox = (CheckBox)sender!; 287CheckBox senderCheckBox = (CheckBox)sender!;
System\Windows\Forms\Design\ButtonBaseDesigner.cs (2)
72if (Control is CheckBox or RadioButton) 83if (Control is CheckBox)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
30private CheckBox _visibleCheckBox; 32private CheckBox _readOnlyCheckBox; 34private CheckBox _frozenCheckBox;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
18private CheckBox _checkBoxUseValidatingType;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
34private CheckBox _altCheckBox; 35private CheckBox _ctrlCheckBox; 36private CheckBox _shiftCheckBox;
System.Windows.Forms.Tests (50)
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (16)
6using CheckBoxAccessibleObject = System.Windows.Forms.CheckBox.CheckBoxAccessibleObject; 28using CheckBox checkBox = new(); 39using CheckBox checkBox = new() 55using CheckBox checkBox = new(); 68using CheckBox checkBox = new(); 79using CheckBox checkBox = new() 96using CheckBox checkBox = new(); 121using CheckBox checkBox = new() { CheckState = checkState }; 157using CheckBox checkBox = new() 178using CheckBox checkBox = new() 193using CheckBox checkBox = new() 213using CheckBox checkBox = new() 232using CheckBox checkBox = new(); 243using CheckBox checkBox = new(); 261using CheckBox checkBox = new() { ThreeState = true }; 298using CheckBox checkBox = new();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1653yield return new object[] { typeof(CheckBox) };
System\Windows\Forms\CheckBoxRendererTests.cs (8)
19using CheckBox control = (CheckBox)CreateButton(); 55using CheckBox control = (CheckBox)CreateButton(); 92using CheckBox control = (CheckBox)CreateButton(); 128using CheckBox control = (CheckBox)CreateButton();
System\Windows\Forms\CheckBoxTests.cs (23)
150using CheckBox control = new() 167using CheckBox control = new(); 175using CheckBox box = new() 187using CheckBox control = new() 204using CheckBox control = new(); 213using CheckBox box = new() 269using CheckBox control = new() 286using CheckBox control = new(); 424using CheckBox control = new() 441using CheckBox control = new(); 449using CheckBox box = new() 460using CheckBox box = new(); 470using CheckBox box = new(); 480using CheckBox box = new(); 624using CheckBox box = new(); 725private class SubCheckBoxAccessibleObject : CheckBox.CheckBoxAccessibleObject 727public SubCheckBoxAccessibleObject(CheckBox owner) : base(owner) 753using CheckBox checkBox = (CheckBox)CreateButton(); 765using CheckBox checkBox = (CheckBox)CreateButton(); 794CheckBox checkBox = (CheckBox)CreateButton();
System\Windows\Forms\ControlTests.cs (2)
887using CheckBox checkBox1 = new() { Checked = true }; 889using CheckBox checkBox2 = new() { Checked = true };
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
584private readonly CheckBox _useCustomCursorsCheck;
WinFormsControlsTest (23)
Buttons.cs (1)
68CheckBox checkBox;
Calendar.Designer.cs (2)
272private System.Windows.Forms.CheckBox showWeekNumbersCheckBox; 273private System.Windows.Forms.CheckBox showTodayCheckBox;
ComboBoxesWithScrollBars.Designer.cs (6)
394private System.Windows.Forms.CheckBox integralHeightCheckBox2; 395private System.Windows.Forms.CheckBox integralHeightCheckBox1; 396private System.Windows.Forms.CheckBox integralHeightCheckBox3; 398private System.Windows.Forms.CheckBox useDifferentHeightsCheckBox3; 399private System.Windows.Forms.CheckBox useDifferentHeightsCheckBox2; 400private System.Windows.Forms.CheckBox useDifferentHeightsCheckBox1;
CustomComCtl32Button.cs (2)
80CheckBox checkbox = (CheckBox)sender;
MdiChild.Designer.cs (6)
156private System.Windows.Forms.CheckBox chkAddMenustrip; 157private System.Windows.Forms.CheckBox chkAddParentMenustrip; 158private System.Windows.Forms.CheckBox chkSetMenustrip; 159private System.Windows.Forms.CheckBox chkSetParentMenustrip; 160private System.Windows.Forms.CheckBox chkChildAlign; 161private System.Windows.Forms.CheckBox chkRightToLeft;
MultipleControls.Designer.cs (2)
343private System.Windows.Forms.CheckBox checkBox1; 344private System.Windows.Forms.CheckBox checkBox2;
ScrollBars.Designer.cs (1)
162private System.Windows.Forms.CheckBox chbRightToLeft;
TrackBars.Designer.cs (3)
283private System.Windows.Forms.CheckBox chbRightToLeft; 284private System.Windows.Forms.CheckBox tickstyleNone; 285private System.Windows.Forms.CheckBox chbRightToLeftLayout;