132 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)
87
_removeButton.
Enabled
= true;
91
_removeButton.
Enabled
= false;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
133
this._removeButton.
Enabled
= false;
MS\Internal\Documents\RMPublishingDialog.cs (10)
41
datePickerValidUntil.
Enabled
= false;
49
textBoxPermissionsContact.
Enabled
= true;
108
datePickerValidUntil.
Enabled
= true;
141
buttonSave.
Enabled
= _canSave;
546
buttonSave.
Enabled
= isSaveAllowed && _canSave;
547
buttonSaveAs.
Enabled
= isSaveAllowed;
571
buttonRemoveUser.
Enabled
= allowRemove;
623
datePickerValidUntil.
Enabled
= checkBoxValidUntil.Checked;
633
textBoxPermissionsContact.
Enabled
= checkBoxPermissionsContact.Checked;
823
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)
450
_buttonRequestDelete.
Enabled
= false;
451
_buttonViewCert.
Enabled
= false;
483
_buttonRequestDelete.
Enabled
= true;
487
_buttonViewCert.
Enabled
= true;
491
_buttonViewCert.
Enabled
= false;
505
_buttonViewCert.
Enabled
= false;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
109
_buttonViewCert.
Enabled
= false;
119
_buttonRequestDelete.
Enabled
= false;
MS\Internal\Documents\SigningDialog.cs (18)
47
_signButton.
Enabled
= false;
53
_signButton.
Enabled
= documentManager.CanSave;
58
_signSaveAsButton.
Enabled
= DocumentRightsManagementManager.Current.HasPermissionToSave;
127
_signButton.
Enabled
= false;
129
_signSaveAsButton.
Enabled
= false;
133
_signButton.
Enabled
= true;
134
_signSaveAsButton.
Enabled
= saveAsEnabled;
145
_signSaveAsButton.
Enabled
= false;
147
_signButton.
Enabled
= false;
151
_signSaveAsButton.
Enabled
= true;
152
_signButton.
Enabled
= saveEnabled;
201
_reasonComboBox.
Enabled
= false;
202
_reasonLabel.
Enabled
= false;
203
_locationTextBox.
Enabled
= false;
204
_locationLabel.
Enabled
= false;
206
_addDigSigCheckBox.
Enabled
= false;
207
_addDocPropCheckBox.
Enabled
= false;
214
_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)
9156
Enabled
= true;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10317
_horizScrollBar.
Enabled
= Enabled;
10331
_horizScrollBar.
Enabled
= false;
10364
_vertScrollBar.
Enabled
= Enabled;
10375
_vertScrollBar.
Enabled
= false;
14985
_vertScrollBar.
Enabled
= true;
14990
_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)
305
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 (62)
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)
1040
_removeButton.
Enabled
= editEnabled && AllowRemoveInstance(((ListItem)_listBox.SelectedItem!).Value);
1041
_upButton.
Enabled
= editEnabled && _listBox.Items.Count > 1;
1042
_downButton.
Enabled
= editEnabled && _listBox.Items.Count > 1;
1043
_propertyGrid.
Enabled
= editEnabled;
1044
_addButton.
Enabled
= CollectionEditable;
1079
_propertyGrid.
Enabled
= false;
1080
_removeButton.
Enabled
= false;
1081
_upButton.
Enabled
= false;
1082
_downButton.
Enabled
= false;
1087
_propertyGrid.
Enabled
= true;
System\Windows\Forms\Design\ControlDesigner.cs (2)
1002
Control.
Enabled
= true;
1090
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)
699
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
700
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
743
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
744
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
804
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
805
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
806
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
833
_moveUp.
Enabled
= _selectedColumns.SelectedIndex > 0;
834
_moveDown.
Enabled
= _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1;
835
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
1063
_moveDown.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != _selectedColumns.Items.Count - 1;
1064
_moveUp.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex > 0;
1065
_deleteButton.
Enabled
= _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1;
System\Windows\Forms\Design\DesignerFrame.cs (1)
106
_designer.
Enabled
= true;
System\Windows\Forms\Design\FormatControl.cs (1)
86
nullValueTextBox.
Enabled
= value;
System\Windows\Forms\Design\StyleEditorForm.cs (13)
609
_removeButton.
Enabled
= _columnsAndRowsListView.Items.Count > 1;
653
_sizeTypeGroupBox.
Enabled
= true;
654
_insertButton.
Enabled
= true;
655
_removeButton.
Enabled
= coll.Count != _columnsAndRowsListView.Items.Count && _columnsAndRowsListView.Items.Count > 1;
716
_sizeTypeGroupBox.
Enabled
= false;
717
_insertButton.
Enabled
= false;
718
_removeButton.
Enabled
= false;
739
_absoluteNumericUpDown.
Enabled
= false;
750
_percentNumericUpDown.
Enabled
= false;
761
_absoluteNumericUpDown.
Enabled
= true;
776
_percentNumericUpDown.
Enabled
= true;
927
_absoluteNumericUpDown.
Enabled
= true;
935
_percentNumericUpDown.
Enabled
= true;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (6)
829
_btnMoveUp.
Enabled
= (_listBoxItems.SelectedItems.Count == 1) && (_listBoxItems.SelectedIndex > 1);
830
_btnMoveDown.
Enabled
= (_listBoxItems.SelectedItems.Count == 1) && (_listBoxItems.SelectedIndex < _listBoxItems.Items.Count - 1);
831
_btnRemove.
Enabled
= selectedItems.Length > 0;
838
_btnRemove.
Enabled
= _btnMoveUp.
Enabled
= _btnMoveDown.
Enabled
= false;
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];
WindowsFormsIntegration (5)
System\Windows\Integration\WindowsFormsHost.cs (4)
865
_focusTarget.
Enabled
= false;
883
{ _focusTarget.
Enabled
= true; }
897
_focusTarget.
Enabled
= false;
925
finally { _focusTarget.
Enabled
= true; }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
238
adapter.
Enabled
= (bool)value;
183 references to Enabled
PresentationUI (2)
MS\Internal\Documents\SigningDialog.cs (2)
128
bool saveAsEnabled = _signSaveAsButton.
Enabled
;
146
bool saveEnabled = _signButton.
Enabled
;
System.Windows.Forms (173)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
515
=> 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)
741
bool modalEnabled = CurrentForm is not null && CurrentForm.
Enabled
;
System\Windows\Forms\Control.cs (11)
1439
if (!
Enabled
)
1842
return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.
Enabled
);
1846
bool oldValue =
Enabled
;
4247
bool oldEnabled =
Enabled
;
4260
if (oldEnabled !=
Enabled
)
4415
Enabled
&& Visible && (_parent is null || _parent.CanProcessMnemonic());
4427
if (!ctl.
Enabled
|| !ctl.Visible)
6842
/// Raises the <see cref="
Enabled
"/> event.
6857
PInvoke.EnableWindow(this,
Enabled
);
8562
|| ((validationConstraints & ValidationConstraints.Enabled) == ValidationConstraints.Enabled && !c.
Enabled
)
11534
if (
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
802
private void Animate() => Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
1149
if (!
Enabled
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
73
&& (Control.Focused || Control.MouseIsOver || (Control.IsDefault && Control.
Enabled
));
134
bool disabledHighContrast = (!Control.
Enabled
) && SystemInformation.HighContrast;
237
bool disabledHighContrast = (!Control.
Enabled
) && SystemInformation.HighContrast;
406
if (!Control.
Enabled
)
472
if (disabledText3D && !Control.
Enabled
&& !colors.Options.HighContrast)
493
if (disabledText3D && !Control.
Enabled
&& !colors.Options.HighContrast)
626
ShadowedText = !Control.
Enabled
,
660
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\DarkMode\ButtonDarkModeAdapter.cs (3)
36
Enabled = Control.
Enabled
84
PushButtonState pushButtonState = ToPushButtonState(state, Control.
Enabled
);
202
Enabled = Control.
Enabled
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 (2)
3683
&& !
Enabled
3797
if (Application.IsDarkModeEnabled && !
Enabled
&& DropDownStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
112
if ((!comboBox.
Enabled
) || (comboBox.FlatStyle == FlatStyle.Popup))
118
Pen innerPen = comboBox.
Enabled
? borderPen : SystemPens.Control;
146
Brush brush = (comboBox.
Enabled
) ? SystemBrushes.ControlText : SystemBrushes.ControlDark;
171
=> comboBox.
Enabled
? SystemColors.Window : SystemColors.ControlDark;
175
if (!comboBox.
Enabled
)
184
=> comboBox.
Enabled
? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2696
if (_horizScrollBar.
Enabled
)
4106
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)
4534
if (_vertScrollBar.
Enabled
)
8569
Debug.Assert(!_vertScrollBar.
Enabled
10317
_horizScrollBar.Enabled =
Enabled
;
10364
_vertScrollBar.Enabled =
Enabled
;
14348
if (_horizScrollBar.
Enabled
)
14977
if (IsHandleCreated &&
Enabled
)
16466
if (!sb.Visible || !sb.
Enabled
)
17169
if (_horizScrollBar.
Enabled
)
17190
if (_horizScrollBar.
Enabled
)
26321
if (_vertScrollBar.
Enabled
)
28394
if (!
Enabled
)
28413
if (!
Enabled
)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
252
: (VARIANT)_ownerDataGridView.
Enabled
,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
774
DataGridView.
Enabled
).Calculate();
806
DataGridView.
Enabled
).Calculate();
827
DataGridView.
Enabled
).Calculate();
842
DataGridView.
Enabled
).Calculate();
898
DataGridView.
Enabled
).Calculate();
911
DataGridView.
Enabled
,
941
DataGridView.
Enabled
,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
690
UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_owner?.DataGridView?.
Enabled
?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (12)
1405
DataGridView.
Enabled
,
1418
DataGridView.
Enabled
).Calculate();
1420
DataGridView.
Enabled
,
1430
DataGridView.
Enabled
,
1454
DataGridView.
Enabled
,
1467
DataGridView.
Enabled
).Calculate();
1469
DataGridView.
Enabled
,
1480
DataGridView.
Enabled
,
1501
DataGridView.
Enabled
,
1514
DataGridView.
Enabled
).Calculate();
1516
DataGridView.
Enabled
,
1527
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)
480
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);
487
if (
Enabled
)
516
if (
Enabled
)
546
Color boxColor =
Enabled
? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\Labels\Label.cs (5)
847
internal void Animate() => Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
987
if (!
Enabled
)
1262
color = hdc.FindNearestColor(
Enabled
? ForeColor : DisabledColor);
1281
if (
Enabled
)
1295
if (
Enabled
)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
810
if (!
Enabled
)
837
if (!
Enabled
|| e.Clicks > 1)
871
if (!
Enabled
|| e.Clicks > 1 || _receivedDoubleClick)
899
if (!
Enabled
)
993
if (
Enabled
)
1192
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
)
731
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)
2835
if (!
Enabled
)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
187
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)
969
private void Animate() => Animate(animate: !DesignMode && Visible &&
Enabled
&& ParentInternal is not null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
85
if (!
Enabled
)
169
if (Visible &&
Enabled
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
848
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\RichTextBox\RichTextBox.cs (1)
3436
&& !
Enabled
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
304
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)
808
parentEnabled = Owner.
Enabled
;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
191
toolStrip.
Enabled
&&
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
138
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)
559
if (!
Enabled
)
567
int width =
Enabled
? 2 : 1;
576
if (!
Enabled
&& BorderStyle != BorderStyle.None && !_upDownEdit.ShouldSerializeBackColor())
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
285
: (
Enabled
? (_mouseOver == ButtonID.Up ? ModernControlButtonState.Hover : ModernControlButtonState.Normal)
295
: (
Enabled
? (_mouseOver == ButtonID.Down ? ModernControlButtonState.Hover : ModernControlButtonState.Normal)
309
if (!
Enabled
)
324
if (!
Enabled
)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1330
get => base.
Enabled
;
System\Windows\Forms\Form.cs (5)
319
if (mdiChild is not null && mdiChild.Visible && mdiChild.
Enabled
)
3810
if (!GetStyle(ControlStyles.Selectable) || !
Enabled
|| !Visible)
4130
if (!DesignMode &&
Enabled
&& Active)
5453
if (!
Enabled
)
5674
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)
496
if (
Enabled
)
592
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)
354
if (ctrlSender.
Enabled
)
933
if (ctrlSender.
Enabled
)
1017
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");
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
260
NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.
Enabled
);
931
OnPropertyChanged("Enabled", this.
Enabled
);