356 writes to Enabled
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
114
ButtonCloseDialog.
Enabled
= False
PresentationUI (43)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
88
_removeButton.
Enabled
= true;
92
_removeButton.
Enabled
= false;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
133
this._removeButton.
Enabled
= false;
MS\Internal\Documents\RMPublishingDialog.cs (10)
44
datePickerValidUntil.
Enabled
= false;
52
textBoxPermissionsContact.
Enabled
= true;
111
datePickerValidUntil.
Enabled
= true;
144
buttonSave.
Enabled
= _canSave;
550
buttonSave.
Enabled
= isSaveAllowed && _canSave;
551
buttonSaveAs.
Enabled
= isSaveAllowed;
575
buttonRemoveUser.
Enabled
= allowRemove;
627
datePickerValidUntil.
Enabled
= checkBoxValidUntil.Checked;
637
textBoxPermissionsContact.
Enabled
= checkBoxPermissionsContact.Checked;
833
buttonEveryone.
Enabled
= !rightsTable.AnyoneUserPresent;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
264
this.textBoxPermissionsContact.
Enabled
= false;
288
this.datePickerValidUntil.
Enabled
= false;
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
439
_buttonRequestDelete.
Enabled
= false;
440
_buttonViewCert.
Enabled
= false;
472
_buttonRequestDelete.
Enabled
= true;
476
_buttonViewCert.
Enabled
= true;
480
_buttonViewCert.
Enabled
= false;
494
_buttonViewCert.
Enabled
= false;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
109
_buttonViewCert.
Enabled
= false;
119
_buttonRequestDelete.
Enabled
= false;
MS\Internal\Documents\SigningDialog.cs (18)
48
_signButton.
Enabled
= false;
54
_signButton.
Enabled
= documentManager.CanSave;
59
_signSaveAsButton.
Enabled
= DocumentRightsManagementManager.Current.HasPermissionToSave;
128
_signButton.
Enabled
= false;
130
_signSaveAsButton.
Enabled
= false;
134
_signButton.
Enabled
= true;
135
_signSaveAsButton.
Enabled
= saveAsEnabled;
146
_signSaveAsButton.
Enabled
= false;
148
_signButton.
Enabled
= false;
152
_signSaveAsButton.
Enabled
= true;
153
_signButton.
Enabled
= saveEnabled;
202
_reasonComboBox.
Enabled
= false;
203
_reasonLabel.
Enabled
= false;
204
_locationTextBox.
Enabled
= false;
205
_locationLabel.
Enabled
= false;
207
_addDigSigCheckBox.
Enabled
= false;
208
_addDocPropCheckBox.
Enabled
= false;
215
_addDigSigCheckBox.
Enabled
= _addDigSigCheckBox.Enabled & !_docSigManager.HasRequests;
MS\Internal\Documents\SigningDialog.Designer.cs (2)
213
_signButton.
Enabled
= false;
227
_signSaveAsButton.
Enabled
= false;
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
148
control.
Enabled
= value;
System\Windows\Forms\ActiveX\AxHost.cs (1)
333
set => base.
Enabled
= value;
System\Windows\Forms\Control.cs (1)
9079
Enabled
= true;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10323
_horizScrollBar.
Enabled
= Enabled;
10337
_horizScrollBar.
Enabled
= false;
10370
_vertScrollBar.
Enabled
= Enabled;
10381
_vertScrollBar.
Enabled
= false;
14991
_vertScrollBar.
Enabled
= true;
14996
_horizScrollBar.
Enabled
= true;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
579
Enabled
= false;
659
Enabled
= _currentControl is not null;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
299
set => base.
Enabled
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
198
set => ControlInternal.
Enabled
= value;
System\Windows\Forms\Design\ComponentEditorForm.cs (6)
101
_applyButton.
Enabled
= false;
269
_helpButton.
Enabled
= false;
276
_applyButton.
Enabled
= false;
324
_helpButton.
Enabled
= _pageSites[_activePage].GetPageControl().SupportsHelp();
403
_helpButton.
Enabled
= _pageSites[_activePage].GetPageControl().SupportsHelp();
427
_applyButton.
Enabled
= true;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
86
_cancelButton.
Enabled
= false;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
388
set => base.
Enabled
= value;
System.Windows.Forms.Design (43)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
53
_byteViewer.
Enabled
= true;
58
_byteViewer.
Enabled
= false;
System\ComponentModel\Design\ByteViewer.cs (4)
488
_scrollBar.
Enabled
= true;
497
_scrollBar.
Enabled
= false;
575
_scrollBar.
Enabled
= true;
580
_scrollBar.
Enabled
= false;
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (10)
1032
_removeButton.
Enabled
= editEnabled && AllowRemoveInstance(((ListItem)_listBox.SelectedItem!).Value);
1033
_upButton.
Enabled
= editEnabled && _listBox.Items.Count > 1;
1034
_downButton.
Enabled
= editEnabled && _listBox.Items.Count > 1;
1035
_propertyGrid.
Enabled
= editEnabled;
1036
_addButton.
Enabled
= CollectionEditable;
1071
_propertyGrid.
Enabled
= false;
1072
_removeButton.
Enabled
= false;
1073
_upButton.
Enabled
= false;
1074
_downButton.
Enabled
= false;
1079
_propertyGrid.
Enabled
= true;
System\Windows\Forms\Design\ControlDesigner.cs (2)
987
Control.
Enabled
= true;
1075
Control.
Enabled
= true;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
182
_dataBoundColumnRadioButton.
Enabled
= true;
188
_dataBoundColumnRadioButton.
Enabled
= false;
483
_columnInDataSourceLabel.
Enabled
= _dataBoundColumnRadioButton.Checked;
484
_dataColumns.
Enabled
= _dataBoundColumnRadioButton.Checked;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
702
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
703
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
746
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
747
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
807
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
808
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
809
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
836
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
837
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
838
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
1066
_moveDown.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != _selectedColumns.Items.Count - 1;
1067
_moveUp.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex > 0;
1068
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
System\Windows\Forms\Design\DesignerFrame.cs (1)
109
_designer.
Enabled
= true;
System\Windows\Forms\Design\FormatControl.cs (1)
86
nullValueTextBox.
Enabled
= value;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (6)
427
_btnAddChild.
Enabled
= false;
428
_btnDelete.
Enabled
= false;
693
_btnAddChild.
Enabled
= nodesExist;
694
_btnDelete.
Enabled
= nodesExist;
695
_moveDownButton.
Enabled
=
699
_moveUpButton.
Enabled
= nodesExist && _curNode != _treeView1.Nodes[0];
System.Windows.Forms.Tests (242)
NumericUpDownTests.cs (1)
77
upDown.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
247
comboBox.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (1)
106
control.
Enabled
= isEnabled;
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (1)
60
domainUpDown.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
125
"disabled" => new Button() {
Enabled
= false },
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
264
Enabled
= enabled
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
290
scrollBar.
Enabled
= true;
302
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
328
scrollBar.
Enabled
= true;
340
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
300
scrollBar.
Enabled
= true;
312
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
315
scrollBar.
Enabled
= true;
327
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
220
scrollBar.
Enabled
= true;
232
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (1)
141
linkLabel.
Enabled
= isEnabled;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
193
control.
Enabled
= enabled;
308
control.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
346
monthCalendar.
Enabled
= enabled;
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (1)
34
numericUpDown.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (2)
122
Enabled
= enabled
150
using SubScrollBar scrollBar = new() {
Enabled
= true };
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (1)
96
control.
Enabled
= isEnabled;
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (3)
102
using TabControl tabControl = new() {
Enabled
= enabled };
659
using TabControl tabControl = new() {
Enabled
= enabled };
743
Enabled
= enabled
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (8)
125
using TabControl tabControl = new() {
Enabled
= tabControlEnabled };
383
using TabControl tabControl = new() {
Enabled
= false };
442
using TabControl tabControl = new() {
Enabled
= false };
501
using TabControl tabControl = new() {
Enabled
= false };
678
using TabControl tabControl = new() {
Enabled
= false };
935
using TabControl tabControl = new() {
Enabled
= false };
1026
using TabControl tabControl = new() {
Enabled
= false };
1080
using TabControl tabControl = new() {
Enabled
= tabControlEnabled };
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
412
using TabControl tabControl = new() {
Enabled
= tabControlEnabled };
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
406
Enabled
= enabled
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
97
control.
Enabled
= isEnabled;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (2)
330
trackBar.
Enabled
= true;
342
trackBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (2)
331
trackBar.
Enabled
= true;
343
trackBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
193
trackBar.
Enabled
= true;
205
trackBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (2)
126
using TreeView control = new() {
Enabled
= isEnabled };
145
using TreeView control = new() {
Enabled
= false };
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
274
scrollBar.
Enabled
= true;
286
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
312
scrollBar.
Enabled
= true;
324
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
284
scrollBar.
Enabled
= true;
296
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
299
scrollBar.
Enabled
= true;
311
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
220
scrollBar.
Enabled
= true;
232
scrollBar.
Enabled
= false;
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
252
Enabled
= enabled
System\Windows\Forms\ButtonBaseTests.cs (67)
831
Enabled
= value
837
control.
Enabled
= value;
842
control.
Enabled
= !value;
869
Enabled
= value
875
control.
Enabled
= value;
880
control.
Enabled
= !value;
914
control.
Enabled
= value;
922
control.
Enabled
= value;
930
control.
Enabled
= !value;
969
control.
Enabled
= value;
977
control.
Enabled
= value;
985
control.
Enabled
= !value;
1007
control.
Enabled
= false;
1012
control.
Enabled
= false;
1017
control.
Enabled
= true;
1023
control.
Enabled
= false;
1398
Enabled
= enabled,
1511
Enabled
= enabled,
1552
Enabled
= enabled,
1614
Enabled
= enabled,
1665
Enabled
= enabled,
1719
Enabled
= enabled,
2813
Enabled
= enabled,
2846
Enabled
= enabled,
2868
Enabled
= enabled,
2911
Enabled
= enabled,
2958
Enabled
= enabled,
4356
Enabled
= enabled,
4393
Enabled
= enabled,
4430
Enabled
= enabled,
4484
Enabled
= enabled,
5118
Enabled
= enabled,
5162
Enabled
= enabled,
5209
Enabled
= enabled,
5266
Enabled
= enabled,
5497
Enabled
= enabled
5542
Enabled
= enabled
5588
Enabled
= enabled
5646
Enabled
= enabled
5762
Enabled
= enabled
5811
Enabled
= enabled
5853
Enabled
= enabled
5916
Enabled
= enabled
6116
Enabled
= enabled
6165
Enabled
= enabled
6233
Enabled
= enabled,
6278
Enabled
= enabled,
6311
Enabled
= enabled,
6369
Enabled
= enabled,
6433
Enabled
= enabled,
6465
Enabled
= enabled,
6531
Enabled
= enabled
6561
Enabled
= enabled
6592
Enabled
= enabled
6645
Enabled
= enabled
6711
Enabled
= enabled
6778
Enabled
= enabled
6947
Enabled
= enabled,
6991
Enabled
= enabled,
7038
Enabled
= enabled,
7095
Enabled
= enabled,
7377
Enabled
= enabled,
7421
Enabled
= enabled,
7468
Enabled
= enabled,
7525
Enabled
= enabled,
8951
Enabled
= false
9065
Enabled
= false
System\Windows\Forms\ButtonTests.cs (9)
2268
Enabled
= enabled
2313
Enabled
= enabled
2377
Enabled
= enabled,
2421
Enabled
= enabled,
2453
Enabled
= enabled,
2510
Enabled
= enabled,
2570
Enabled
= enabled,
2601
Enabled
= enabled,
3302
Enabled
= false
System\Windows\Forms\ContainerControlTests.cs (2)
807
Enabled
= false
1033
Enabled
= false
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
645
owner.
Enabled
= false;
795
owner.
Enabled
= false;
948
owner.
Enabled
= false;
1021
owner.
Enabled
= false;
2348
owner.
Enabled
= false;
2492
owner.
Enabled
= false;
2624
owner.
Enabled
= false;
2688
owner.
Enabled
= false;
System\Windows\Forms\ControlTests.cs (1)
549
Enabled
= enabled
System\Windows\Forms\ControlTests.Handlers.cs (3)
1551
Enabled
= false
1555
Enabled
= false
4438
Enabled
= false
System\Windows\Forms\ControlTests.Internals.cs (1)
241
Enabled
= false
System\Windows\Forms\ControlTests.Methods.cs (6)
361
Enabled
= enabled
7256
Enabled
= enabled
13559
Enabled
= false
13677
Enabled
= false
13890
Enabled
= false
14004
Enabled
= false
System\Windows\Forms\ControlTests.Properties.cs (30)
3049
Enabled
= enabled,
3065
Enabled
= enabled,
3080
Enabled
= enabled,
3099
Enabled
= enabled,
3115
Enabled
= enabled,
4506
Enabled
= value
4512
control.
Enabled
= value;
4517
control.
Enabled
= !value;
4540
control.
Enabled
= value;
4548
control.
Enabled
= value;
4556
control.
Enabled
= !value;
4569
Enabled
= true
4581
control.
Enabled
= false;
4586
control.
Enabled
= false;
4591
control.
Enabled
= true;
4597
control.
Enabled
= false;
4609
Enabled
= true
4640
control.
Enabled
= false;
4649
control.
Enabled
= false;
4658
control.
Enabled
= true;
4670
control.
Enabled
= false;
4684
Enabled
= false
4688
Enabled
= false
4692
Enabled
= true
4723
control.
Enabled
= false;
4732
control.
Enabled
= false;
4741
control.
Enabled
= true;
4753
control.
Enabled
= false;
4769
control.
Enabled
= false;
4785
control.
Enabled
= false;
System\Windows\Forms\FormTests.cs (3)
267
Enabled
= true
283
Enabled
= true
298
Enabled
= false
System\Windows\Forms\GroupBoxTests.cs (4)
1856
Enabled
= enabled,
1894
Enabled
= enabled,
2018
Enabled
= false
2045
Enabled
= false
System\Windows\Forms\PictureBoxTests.cs (11)
240
Enabled
= value
245
control.
Enabled
= value;
249
control.
Enabled
= value;
260
control.
Enabled
= value;
264
control.
Enabled
= value;
268
control.
Enabled
= value;
277
Enabled
= true
289
control.
Enabled
= false;
294
control.
Enabled
= false;
299
control.
Enabled
= true;
305
control.
Enabled
= false;
System\Windows\Forms\PropertyGridTests.cs (2)
3916
propertyGrid.
Enabled
= enable;
3959
propertyGrid.
Enabled
= true;
System\Windows\Forms\RadioButtonTests.cs (2)
1386
Enabled
= false
1456
Enabled
= false
System\Windows\Forms\ScrollBarTests.cs (20)
369
Enabled
= value
375
control.
Enabled
= value;
380
control.
Enabled
= value;
398
control.
Enabled
= value;
406
control.
Enabled
= value;
414
control.
Enabled
= value;
437
control.
Enabled
= true;
447
Enabled
= true
459
control.
Enabled
= false;
464
control.
Enabled
= false;
469
control.
Enabled
= true;
475
control.
Enabled
= false;
778
Enabled
= false
923
Enabled
= false
1109
Enabled
= false
1343
Enabled
= false
1655
Enabled
= false
2610
Enabled
= enabled
2622
Enabled
= enabled
2645
Enabled
= enabled,
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (2)
53
_comboBox.
Enabled
= enabled;
67
_comboBox.
Enabled
= enabled;
System\Windows\Forms\ToolStripControlHostTests.cs (4)
39
yield return new object[] { new Control {
Enabled
= false } };
494
Enabled
= enabled
598
c.
Enabled
= false;
603
c.
Enabled
= true;
System\Windows\Forms\ToolStripItemTests.cs (2)
2471
Enabled
= ownerEnabled
2493
Enabled
= parentEnabled
System\Windows\Forms\ToolStripTests.cs (1)
7234
toolStrip.
Enabled
= true;
System\Windows\Forms\UpDownBaseTests.cs (2)
2252
Enabled
= enabled,
2288
Enabled
= enabled,
System\Windows\Forms\UserControlTests.cs (2)
1273
Enabled
= false
1499
Enabled
= false
TextBoxBaseTests.cs (2)
7338
Enabled
= false
7456
Enabled
= false
TextBoxTests.Rendering.cs (1)
21
Enabled
= false
WindowsFormsIntegration (5)
System\Windows\Integration\WindowsFormsHost.cs (4)
894
_focusTarget.
Enabled
= false;
912
{ _focusTarget.
Enabled
= true; }
926
_focusTarget.
Enabled
= false;
954
finally { _focusTarget.
Enabled
= true; }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
242
adapter.
Enabled
= (bool)value;
WinFormsControlsTest (1)
MultipleControls.cs (1)
127
textBox1.
Enabled
= !textBox1.Enabled;
336 references to Enabled
PresentationUI (3)
MS\Internal\Documents\SigningDialog.cs (3)
129
bool saveAsEnabled = _signSaveAsButton.
Enabled
;
147
bool saveEnabled = _signButton.
Enabled
;
215
_addDigSigCheckBox.Enabled = _addDigSigCheckBox.
Enabled
& !_docSigManager.HasRequests;
System.Windows.Forms (167)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
516
=> Owner?.
Enabled
== true ? VARIANT.True : VARIANT.False,
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
143
get => GetControl()?.
Enabled
?? BOOL.FALSE;
System\Windows\Forms\ActiveX\AxHost.cs (1)
332
get => base.
Enabled
;
System\Windows\Forms\Application.ThreadContext.cs (1)
756
bool modalEnabled = CurrentForm is not null && CurrentForm.
Enabled
;
System\Windows\Forms\Control.cs (11)
1352
if (!
Enabled
)
1755
return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.
Enabled
);
1759
bool oldValue =
Enabled
;
4160
bool oldEnabled =
Enabled
;
4173
if (oldEnabled !=
Enabled
)
4328
Enabled
&& Visible && (_parent is null || _parent.CanProcessMnemonic());
4340
if (!ctl.
Enabled
|| !ctl.Visible)
6753
/// Raises the <see cref="
Enabled
"/> event.
6768
PInvoke.EnableWindow(this,
Enabled
);
8485
|| ((validationConstraints & ValidationConstraints.Enabled) == ValidationConstraints.Enabled && !c.
Enabled
)
11426
if (
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
744
private void Animate() => Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
1091
if (!
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
71
&& (Control.Focused || Control.MouseIsOver || (Control.IsDefault && Control.
Enabled
));
132
bool disabledHighContrast = (!Control.
Enabled
) && SystemInformation.HighContrast;
235
bool disabledHighContrast = (!Control.
Enabled
) && SystemInformation.HighContrast;
404
if (!Control.
Enabled
)
470
if (disabledText3D && !Control.
Enabled
&& !colors.Options.HighContrast)
491
if (disabledText3D && !Control.
Enabled
&& !colors.Options.HighContrast)
609
ShadowedText = !Control.
Enabled
,
643
Enabled = Control.
Enabled
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
28
else if (!Control.
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
132
DrawCheckBackground(Control.
Enabled
, Control.CheckState, e, bounds, checkBackground, disabledColors);
140
Control.
Enabled
,
245
if (!Control.
Enabled
)
345
layout.ShadowedText = !Control.
Enabled
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (3)
21
if (Control.
Enabled
)
40
if (Control.
Enabled
)
59
if (Control.
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
41
(colors.Options.HighContrast && !Control.
Enabled
) ? colors.WindowFrame : colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (4)
35
if (!Control.
Enabled
&& disabledColors)
63
if (!Control.
Enabled
)
140
if (!Control.
Enabled
&& disabledColors)
181
if (!Control.
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
22
if (Control.
Enabled
)
42
if (Control.
Enabled
)
62
if (Control.
Enabled
)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
81
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owner.
Enabled
,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
77
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.
Enabled
,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
130
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.
Enabled
,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
105
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owner.
Enabled
,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
118
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.
Enabled
,
173
if (!_owningComboBox.IsHandleCreated || !_owningComboBox.
Enabled
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3768
if ((!
Enabled
|| FlatStyle == FlatStyle.Popup) && MouseIsOver)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
82
if ((!comboBox.
Enabled
) || (comboBox.FlatStyle == FlatStyle.Popup))
88
Pen innerPen = comboBox.
Enabled
? borderPen : SystemPens.Control;
165
Brush brush = (comboBox.
Enabled
) ? SystemBrushes.ControlText : SystemBrushes.ControlDark;
190
=> comboBox.
Enabled
? SystemColors.Window : SystemColors.ControlDark;
194
if (!comboBox.
Enabled
)
203
=> comboBox.
Enabled
? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2689
if (_horizScrollBar.
Enabled
)
4105
if (_vertScrollBar.
Enabled
)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
89
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_ownerDataGridView.TryGetTarget(out var owner) && owner.
Enabled
),
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
4540
if (_vertScrollBar.
Enabled
)
8575
Debug.Assert(!_vertScrollBar.
Enabled
10323
_horizScrollBar.Enabled =
Enabled
;
10370
_vertScrollBar.Enabled =
Enabled
;
14354
if (_horizScrollBar.
Enabled
)
14983
if (IsHandleCreated &&
Enabled
)
16472
if (!sb.Visible || !sb.
Enabled
)
17178
if (_horizScrollBar.
Enabled
)
17199
if (_horizScrollBar.
Enabled
)
26333
if (_vertScrollBar.
Enabled
)
28405
if (!
Enabled
)
28424
if (!
Enabled
)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
252
: (VARIANT)_ownerDataGridView.
Enabled
,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
777
DataGridView.
Enabled
).Calculate();
809
DataGridView.
Enabled
).Calculate();
830
DataGridView.
Enabled
).Calculate();
845
DataGridView.
Enabled
).Calculate();
901
DataGridView.
Enabled
).Calculate();
914
DataGridView.
Enabled
,
944
DataGridView.
Enabled
,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
691
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (12)
1400
DataGridView.
Enabled
,
1413
DataGridView.
Enabled
).Calculate();
1415
DataGridView.
Enabled
,
1425
DataGridView.
Enabled
,
1449
DataGridView.
Enabled
,
1462
DataGridView.
Enabled
).Calculate();
1464
DataGridView.
Enabled
,
1475
DataGridView.
Enabled
,
1496
DataGridView.
Enabled
,
1509
DataGridView.
Enabled
).Calculate();
1511
DataGridView.
Enabled
,
1522
DataGridView.
Enabled
,
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
269
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
481
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
277
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
302
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (6)
410
GroupBoxState gbState =
Enabled
? GroupBoxState.Normal : GroupBoxState.Disabled;
428
if (ShouldSerializeForeColor() || Application.IsDarkModeEnabled || !
Enabled
)
430
Color textColor =
Enabled
? ForeColor : TextRenderer.DisabledTextColor(BackColor);
488
if (
Enabled
)
517
if (
Enabled
)
547
Color boxColor =
Enabled
? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\Labels\Label.cs (5)
849
internal void Animate() => Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
989
if (!
Enabled
)
1264
color = hdc.FindNearestColor(
Enabled
? ForeColor : DisabledColor);
1283
if (
Enabled
)
1297
if (
Enabled
)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
809
if (!
Enabled
)
836
if (!
Enabled
|| e.Clicks > 1)
870
if (!
Enabled
|| e.Clicks > 1 || _receivedDoubleClick)
898
if (!
Enabled
)
995
if (
Enabled
)
1194
if (!
Enabled
)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
94
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningLinkLabel.
Enabled
,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
583
if (!
Enabled
)
596
if (
Enabled
)
729
if (!
Enabled
)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
169
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListBox.
Enabled
,
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2825
if (!
Enabled
)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
192
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListView.
Enabled
,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
182
return (VARIANT)_owningListView.
Enabled
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
124
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListView.
Enabled
,
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (1)
50
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => _owningListView.TryGetTarget(out ListView? target) ? (VARIANT)target.
Enabled
: VARIANT.False,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
457
internal bool IsEnabled => this.TryGetOwnerAs(out MonthCalendar? owner) && owner.
Enabled
;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
972
private void Animate() => Animate(animate: !DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
114
if (Visible &&
Enabled
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
825
if (IsHandleCreated && Visible &&
Enabled
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
136
return base.ForceReadOnly || (OwnerGridView is not null && !OwnerGridView.
Enabled
);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
298
get => base.
Enabled
;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
83
if (OwningTabControl is not null && OwningTabControl.IsHandleCreated && OwningTabControl.
Enabled
)
123
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(OwningTabControl?.
Enabled
?? false),
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
48
return (comboBox.
Enabled
) ? SystemColors.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder;
58
if (!comboBox.
Enabled
)
76
if (!comboBox.
Enabled
|| !ToolStripManager.VisualStylesEnabled)
129
if (comboBox.
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
197
get => ControlInternal.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
803
parentEnabled = Owner.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
192
toolStrip.
Enabled
&&
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
133
if (ParentInternal is ToolStripDropDownMenu parent && Label.
Enabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
247
if (!
Enabled
)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
77
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(this.TryGetOwnerAs(out TrackBar? owner) && owner.
Enabled
),
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (3)
114
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningTreeView.
Enabled
,
181
if (!_owningTreeView.
Enabled
)
233
if (!_owningTreeView.IsHandleCreated || !_owningTreeView.
Enabled
)
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (3)
51
&& owningTreeView.
Enabled
&& owningTreeView.Nodes.Count == 0),
52
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(this.TryGetOwnerAs(out TreeView? owningTreeView) && owningTreeView.
Enabled
),
91
if (!owningTreeView.
Enabled
)
System\Windows\Forms\Controls\TreeView\TreeViewLabelEditAccessibleObject.cs (1)
39
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => _owningTreeView.TryGetTarget(out TreeView? target) ? (VARIANT)target.
Enabled
: VARIANT.False,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
561
if (!
Enabled
)
569
int width =
Enabled
? 2 : 1;
578
if (!
Enabled
&& BorderStyle != BorderStyle.None && !_upDownEdit.ShouldSerializeBackColor())
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
268
if (!
Enabled
)
283
if (!
Enabled
)
309
_pushed == ButtonID.Up ? ButtonState.Pushed : (
Enabled
? ButtonState.Normal : ButtonState.Inactive));
315
_pushed == ButtonID.Down ? ButtonState.Pushed : (
Enabled
? ButtonState.Normal : ButtonState.Inactive));
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1336
get => base.
Enabled
;
System\Windows\Forms\Form.cs (5)
323
if (mdiChild is not null && mdiChild.Visible && mdiChild.
Enabled
)
3759
if (!GetStyle(ControlStyles.Selectable) || !
Enabled
|| !Visible)
4079
if (!DesignMode &&
Enabled
&& Active)
5382
if (!
Enabled
)
5576
if (!
Enabled
)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
930
Debug.Assert(
Enabled
, "SplitContainer.OnKeyDown should not be called if the button is disabled");
1120
if (!
Enabled
)
1137
if (!
Enabled
)
1174
if (!
Enabled
)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
387
get => base.
Enabled
;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
503
if (
Enabled
)
599
if (!IsHandleCreated || !
Enabled
)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
84
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)OwningScrollBar.
Enabled
,
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
340
if (ctrlSender.
Enabled
)
919
if (ctrlSender.
Enabled
)
1009
if (ctrlSender.
Enabled
)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
77
if (
Enabled
)
98
if (
Enabled
)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
619
Debug.Assert(_dataColumns.
Enabled
, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync");
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
74
Assert.True(control.
Enabled
);
System.Windows.Forms.Tests (156)
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
34
Assert.Equal(listView.
Enabled
, (bool)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
127
Assert.Equal(scrollBar.
Enabled
, actual);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
748
Assert.Equal(tabControl.
Enabled
, actual);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
137
Assert.True(control.
Enabled
);
147
Assert.False(control.
Enabled
);
158
Assert.True(control.
Enabled
);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
33
Assert.Equal(treeView.
Enabled
, (bool)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\ButtonBaseTests.cs (18)
61
Assert.True(control.
Enabled
);
789
Assert.True(button.
Enabled
);
799
Assert.False(button.
Enabled
);
833
Assert.Equal(value, control.
Enabled
);
838
Assert.Equal(value, control.
Enabled
);
843
Assert.Equal(!value, control.
Enabled
);
871
Assert.Equal(value, control.
Enabled
);
876
Assert.Equal(value, control.
Enabled
);
881
Assert.Equal(!value, control.
Enabled
);
915
Assert.Equal(value, control.
Enabled
);
923
Assert.Equal(value, control.
Enabled
);
931
Assert.Equal(!value, control.
Enabled
);
970
Assert.Equal(value, control.
Enabled
);
978
Assert.Equal(value, control.
Enabled
);
986
Assert.Equal(!value, control.
Enabled
);
1008
Assert.False(control.
Enabled
);
1013
Assert.False(control.
Enabled
);
1018
Assert.True(control.
Enabled
);
System\Windows\Forms\ButtonTests.cs (1)
64
Assert.True(control.
Enabled
);
System\Windows\Forms\CheckBoxTests.cs (1)
65
Assert.True(control.
Enabled
);
System\Windows\Forms\ComboBoxTests.cs (1)
74
Assert.True(control.
Enabled
);
System\Windows\Forms\ContainerControlTests.cs (1)
75
Assert.True(control.
Enabled
);
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
567
Assert.True(control.
Enabled
);
611
Assert.True(control.
Enabled
);
646
Assert.True(control.
Enabled
);
756
Assert.False(control.
Enabled
);
796
Assert.True(control.
Enabled
);
915
Assert.False(control.
Enabled
);
2264
Assert.True(control.
Enabled
);
2311
Assert.True(control.
Enabled
);
2349
Assert.False(control.
Enabled
);
2455
Assert.True(control.
Enabled
);
2493
Assert.False(control.
Enabled
);
2588
Assert.True(control.
Enabled
);
System\Windows\Forms\ControlTests.cs (5)
56
Assert.True(control.
Enabled
);
145
Assert.True(control.
Enabled
);
241
Assert.True(control.
Enabled
);
337
Assert.True(control.
Enabled
);
433
Assert.True(control.
Enabled
);
System\Windows\Forms\ControlTests.Properties.cs (40)
4508
Assert.Equal(value, control.
Enabled
);
4513
Assert.Equal(value, control.
Enabled
);
4518
Assert.Equal(!value, control.
Enabled
);
4541
Assert.Equal(value, control.
Enabled
);
4549
Assert.Equal(value, control.
Enabled
);
4557
Assert.Equal(!value, control.
Enabled
);
4582
Assert.False(control.
Enabled
);
4587
Assert.False(control.
Enabled
);
4592
Assert.True(control.
Enabled
);
4598
Assert.False(control.
Enabled
);
4641
Assert.False(control.
Enabled
);
4642
Assert.False(child1.
Enabled
);
4643
Assert.False(child2.
Enabled
);
4650
Assert.False(control.
Enabled
);
4651
Assert.False(child1.
Enabled
);
4652
Assert.False(child2.
Enabled
);
4659
Assert.True(control.
Enabled
);
4660
Assert.True(child1.
Enabled
);
4661
Assert.True(child2.
Enabled
);
4671
Assert.False(control.
Enabled
);
4672
Assert.False(child1.
Enabled
);
4673
Assert.False(child2.
Enabled
);
4724
Assert.False(control.
Enabled
);
4725
Assert.False(child1.
Enabled
);
4726
Assert.False(child2.
Enabled
);
4733
Assert.False(control.
Enabled
);
4734
Assert.False(child1.
Enabled
);
4735
Assert.False(child2.
Enabled
);
4742
Assert.True(control.
Enabled
);
4743
Assert.False(child1.
Enabled
);
4744
Assert.False(child2.
Enabled
);
4754
Assert.False(control.
Enabled
);
4755
Assert.False(child1.
Enabled
);
4756
Assert.False(child2.
Enabled
);
4765
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Enabled
)];
4770
Assert.False(control.
Enabled
);
4774
Assert.True(control.
Enabled
);
4781
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Enabled
)];
4786
Assert.False(control.
Enabled
);
4790
Assert.True(control.
Enabled
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
72
Assert.True(control.
Enabled
);
System\Windows\Forms\DateTimePickerTests.cs (1)
72
Assert.True(control.
Enabled
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
88
Assert.True(control.
Enabled
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
71
Assert.True(control.
Enabled
);
System\Windows\Forms\DomainUpDownTests.cs (1)
94
_sub.
Enabled
.Should().BeTrue();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
68
Assert.True(control.
Enabled
);
System\Windows\Forms\FormTests.cs (1)
90
Assert.True(control.
Enabled
);
System\Windows\Forms\GroupBoxTests.cs (1)
59
Assert.True(control.
Enabled
);
System\Windows\Forms\HScrollBarTests.cs (1)
67
Assert.True(control.
Enabled
);
System\Windows\Forms\LabelTests.cs (1)
59
Assert.True(control.
Enabled
);
System\Windows\Forms\ListBoxTests.cs (1)
67
Assert.True(control.
Enabled
);
System\Windows\Forms\ListControlTests.cs (1)
63
Assert.True(control.
Enabled
);
System\Windows\Forms\ListViewTests.cs (1)
74
Assert.True(control.
Enabled
);
System\Windows\Forms\MdiClientTests.cs (5)
48
Assert.True(control.
Enabled
);
334
Assert.True(control.
Enabled
);
359
Assert.True(control.
Enabled
);
384
Assert.True(control.
Enabled
);
429
Assert.Equal(!designMode, control.
Enabled
);
System\Windows\Forms\MenuStripTests.cs (1)
75
Assert.True(control.
Enabled
);
System\Windows\Forms\MonthCalendarTests.cs (1)
76
Assert.True(control.
Enabled
);
System\Windows\Forms\PanelTests.cs (1)
69
Assert.True(control.
Enabled
);
System\Windows\Forms\PictureBoxTests.cs (11)
62
Assert.True(control.
Enabled
);
242
Assert.Equal(value, control.
Enabled
);
246
Assert.Equal(value, control.
Enabled
);
250
Assert.Equal(value, control.
Enabled
);
261
Assert.Equal(value, control.
Enabled
);
265
Assert.Equal(value, control.
Enabled
);
269
Assert.Equal(value, control.
Enabled
);
290
Assert.False(control.
Enabled
);
295
Assert.False(control.
Enabled
);
300
Assert.True(control.
Enabled
);
306
Assert.False(control.
Enabled
);
System\Windows\Forms\ProgressBarTests.cs (1)
57
Assert.True(control.
Enabled
);
System\Windows\Forms\PropertyGridTests.cs (1)
98
Assert.True(control.
Enabled
);
System\Windows\Forms\RadioButtonTests.cs (1)
64
Assert.True(control.
Enabled
);
System\Windows\Forms\RichTextBoxTests.cs (1)
75
Assert.True(control.
Enabled
);
System\Windows\Forms\ScrollableControlTests.cs (1)
68
Assert.True(control.
Enabled
);
System\Windows\Forms\ScrollBarTests.cs (11)
57
Assert.True(control.
Enabled
);
371
Assert.Equal(value, control.
Enabled
);
376
Assert.Equal(value, control.
Enabled
);
381
Assert.Equal(value, control.
Enabled
);
399
Assert.Equal(value, control.
Enabled
);
407
Assert.Equal(value, control.
Enabled
);
415
Assert.Equal(value, control.
Enabled
);
460
Assert.False(control.
Enabled
);
465
Assert.False(control.
Enabled
);
470
Assert.True(control.
Enabled
);
476
Assert.False(control.
Enabled
);
System\Windows\Forms\SplitterPanelTests.cs (1)
64
Assert.True(control.
Enabled
);
System\Windows\Forms\SplitterTests.cs (1)
58
Assert.True(control.
Enabled
);
System\Windows\Forms\StatusStripTests.cs (1)
75
Assert.True(control.
Enabled
);
System\Windows\Forms\TabControlTests.cs (1)
60
Assert.True(control.
Enabled
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
74
Assert.True(control.
Enabled
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
71
Assert.True(control.
Enabled
);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
81
Assert.Equal(c.
Enabled
, item.Enabled);
599
Assert.False(c.
Enabled
);
604
Assert.True(c.
Enabled
);
872
Assert.Equal(value, c.
Enabled
);
878
Assert.Equal(value, c.
Enabled
);
884
Assert.Equal(!value, c.
Enabled
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
80
Assert.True(control.
Enabled
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
71
Assert.True(control.
Enabled
);
System\Windows\Forms\ToolStripTests.cs (2)
90
Assert.True(control.
Enabled
);
244
Assert.True(control.
Enabled
);
System\Windows\Forms\TreeViewTests.cs (1)
61
Assert.True(control.
Enabled
);
System\Windows\Forms\UpDownBaseTests.cs (1)
81
Assert.True(control.
Enabled
);
System\Windows\Forms\UserControlTests.cs (1)
75
Assert.True(control.
Enabled
);
System\Windows\Forms\VScrollBarTests.cs (1)
66
Assert.True(control.
Enabled
);
TextBoxTests.cs (1)
66
Assert.True(control.
Enabled
);
TrackBarTests.cs (1)
59
Assert.True(control.
Enabled
);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
262
NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.
Enabled
);
940
OnPropertyChanged("Enabled", this.
Enabled
);
WinFormsControlsTest (1)
MultipleControls.cs (1)
127
textBox1.Enabled = !textBox1.
Enabled
;