132 writes to Enabled
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
114ButtonCloseDialog.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)
133this._removeButton.Enabled = false;
MS\Internal\Documents\RMPublishingDialog.cs (10)
41datePickerValidUntil.Enabled = false; 49textBoxPermissionsContact.Enabled = true; 108datePickerValidUntil.Enabled = true; 141buttonSave.Enabled = _canSave; 546buttonSave.Enabled = isSaveAllowed && _canSave; 547buttonSaveAs.Enabled = isSaveAllowed; 571buttonRemoveUser.Enabled = allowRemove; 623datePickerValidUntil.Enabled = checkBoxValidUntil.Checked; 633textBoxPermissionsContact.Enabled = checkBoxPermissionsContact.Checked; 823buttonEveryone.Enabled = !rightsTable.AnyoneUserPresent;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
264this.textBoxPermissionsContact.Enabled = false; 288this.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)
148control.Enabled = value;
System\Windows\Forms\ActiveX\AxHost.cs (1)
333set => base.Enabled = value;
System\Windows\Forms\Control.cs (1)
9156Enabled = 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)
579Enabled = false; 659Enabled = _currentControl is not null;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
305set => base.Enabled = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
198set => 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)
388set => 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)
1002Control.Enabled = true; 1090Control.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)
86nullValueTextBox.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; 925finally { _focusTarget.Enabled = true; }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
238adapter.Enabled = (bool)value;
183 references to Enabled
PresentationUI (2)
MS\Internal\Documents\SigningDialog.cs (2)
128bool saveAsEnabled = _signSaveAsButton.Enabled; 146bool 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)
143get => GetControl()?.Enabled ?? BOOL.FALSE;
System\Windows\Forms\ActiveX\AxHost.cs (1)
332get => base.Enabled;
System\Windows\Forms\Application.ThreadContext.cs (1)
741bool modalEnabled = CurrentForm is not null && CurrentForm.Enabled;
System\Windows\Forms\Control.cs (11)
1439if (!Enabled) 1842return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled); 1846bool oldValue = Enabled; 4247bool oldEnabled = Enabled; 4260if (oldEnabled != Enabled) 4415Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4427if (!ctl.Enabled || !ctl.Visible) 6842/// Raises the <see cref="Enabled"/> event. 6857PInvoke.EnableWindow(this, Enabled); 8562|| ((validationConstraints & ValidationConstraints.Enabled) == ValidationConstraints.Enabled && !c.Enabled) 11534if (Enabled)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
802private void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 1149if (!Enabled)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
73&& (Control.Focused || Control.MouseIsOver || (Control.IsDefault && Control.Enabled)); 134bool disabledHighContrast = (!Control.Enabled) && SystemInformation.HighContrast; 237bool disabledHighContrast = (!Control.Enabled) && SystemInformation.HighContrast; 406if (!Control.Enabled) 472if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast) 493if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast) 626ShadowedText = !Control.Enabled, 660Enabled = Control.Enabled
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
28else if (!Control.Enabled)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
132DrawCheckBackground(Control.Enabled, Control.CheckState, e, bounds, checkBackground, disabledColors); 140Control.Enabled, 245if (!Control.Enabled) 345layout.ShadowedText = !Control.Enabled;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (3)
21if (Control.Enabled) 40if (Control.Enabled) 59if (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)
36Enabled = Control.Enabled 84PushButtonState pushButtonState = ToPushButtonState(state, Control.Enabled); 202Enabled = Control.Enabled
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (4)
35if (!Control.Enabled && disabledColors) 63if (!Control.Enabled) 140if (!Control.Enabled && disabledColors) 181if (!Control.Enabled)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
22if (Control.Enabled) 42if (Control.Enabled) 62if (Control.Enabled)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
81UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owner.Enabled,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
77UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.Enabled,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
130UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.Enabled,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
105UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owner.Enabled,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
118UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.Enabled, 173if (!_owningComboBox.IsHandleCreated || !_owningComboBox.Enabled)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3683&& !Enabled 3797if (Application.IsDarkModeEnabled && !Enabled && DropDownStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
112if ((!comboBox.Enabled) || (comboBox.FlatStyle == FlatStyle.Popup)) 118Pen innerPen = comboBox.Enabled ? borderPen : SystemPens.Control; 146Brush brush = (comboBox.Enabled) ? SystemBrushes.ControlText : SystemBrushes.ControlDark; 171=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 175if (!comboBox.Enabled) 184=> comboBox.Enabled ? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2696if (_horizScrollBar.Enabled) 4106if (_vertScrollBar.Enabled)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
89UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_ownerDataGridView.TryGetTarget(out var owner) && owner.Enabled),
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
4534if (_vertScrollBar.Enabled) 8569Debug.Assert(!_vertScrollBar.Enabled 10317_horizScrollBar.Enabled = Enabled; 10364_vertScrollBar.Enabled = Enabled; 14348if (_horizScrollBar.Enabled) 14977if (IsHandleCreated && Enabled) 16466if (!sb.Visible || !sb.Enabled) 17169if (_horizScrollBar.Enabled) 17190if (_horizScrollBar.Enabled) 26321if (_vertScrollBar.Enabled) 28394if (!Enabled) 28413if (!Enabled)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
252: (VARIANT)_ownerDataGridView.Enabled,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
774DataGridView.Enabled).Calculate(); 806DataGridView.Enabled).Calculate(); 827DataGridView.Enabled).Calculate(); 842DataGridView.Enabled).Calculate(); 898DataGridView.Enabled).Calculate(); 911DataGridView.Enabled, 941DataGridView.Enabled,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
690UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (12)
1405DataGridView.Enabled, 1418DataGridView.Enabled).Calculate(); 1420DataGridView.Enabled, 1430DataGridView.Enabled, 1454DataGridView.Enabled, 1467DataGridView.Enabled).Calculate(); 1469DataGridView.Enabled, 1480DataGridView.Enabled, 1501DataGridView.Enabled, 1514DataGridView.Enabled).Calculate(); 1516DataGridView.Enabled, 1527DataGridView.Enabled,
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
269UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
480UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
277UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
302UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(Owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (6)
410GroupBoxState gbState = Enabled ? GroupBoxState.Normal : GroupBoxState.Disabled; 428if (ShouldSerializeForeColor() || Application.IsDarkModeEnabled || !Enabled) 430Color textColor = Enabled ? ForeColor : TextRenderer.DisabledTextColor(BackColor); 487if (Enabled) 516if (Enabled) 546Color boxColor = Enabled ? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\Labels\Label.cs (5)
847internal void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 987if (!Enabled) 1262color = hdc.FindNearestColor(Enabled ? ForeColor : DisabledColor); 1281if (Enabled) 1295if (Enabled)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
810if (!Enabled) 837if (!Enabled || e.Clicks > 1) 871if (!Enabled || e.Clicks > 1 || _receivedDoubleClick) 899if (!Enabled) 993if (Enabled) 1192if (!Enabled)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
94UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningLinkLabel.Enabled,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
583if (!Enabled) 596if (Enabled) 731if (!Enabled)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
169UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListBox.Enabled,
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2835if (!Enabled)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
187UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListView.Enabled,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
182return (VARIANT)_owningListView.Enabled;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
124UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListView.Enabled,
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (1)
50UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => _owningListView.TryGetTarget(out ListView? target) ? (VARIANT)target.Enabled : VARIANT.False,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
457internal bool IsEnabled => this.TryGetOwnerAs(out MonthCalendar? owner) && owner.Enabled;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
969private void Animate() => Animate(animate: !DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
85if (!Enabled) 169if (Visible && Enabled)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
848if (IsHandleCreated && Visible && Enabled)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
136return 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)
304get => base.Enabled;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
83if (OwningTabControl is not null && OwningTabControl.IsHandleCreated && OwningTabControl.Enabled) 123UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(OwningTabControl?.Enabled ?? false),
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
48return (comboBox.Enabled) ? SystemColors.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder; 58if (!comboBox.Enabled) 76if (!comboBox.Enabled || !ToolStripManager.VisualStylesEnabled) 129if (comboBox.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
197get => ControlInternal.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
808parentEnabled = Owner.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
191toolStrip.Enabled &&
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
138if (ParentInternal is ToolStripDropDownMenu parent && Label.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
247if (!Enabled)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
77UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(this.TryGetOwnerAs(out TrackBar? owner) && owner.Enabled),
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (3)
114UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningTreeView.Enabled, 181if (!_owningTreeView.Enabled) 233if (!_owningTreeView.IsHandleCreated || !_owningTreeView.Enabled)
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (3)
51&& owningTreeView.Enabled && owningTreeView.Nodes.Count == 0), 52UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(this.TryGetOwnerAs(out TreeView? owningTreeView) && owningTreeView.Enabled), 91if (!owningTreeView.Enabled)
System\Windows\Forms\Controls\TreeView\TreeViewLabelEditAccessibleObject.cs (1)
39UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => _owningTreeView.TryGetTarget(out TreeView? target) ? (VARIANT)target.Enabled : VARIANT.False,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
559if (!Enabled) 567int width = Enabled ? 2 : 1; 576if (!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) 309if (!Enabled) 324if (!Enabled)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1330get => base.Enabled;
System\Windows\Forms\Form.cs (5)
319if (mdiChild is not null && mdiChild.Visible && mdiChild.Enabled) 3810if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible) 4130if (!DesignMode && Enabled && Active) 5453if (!Enabled) 5674if (!Enabled)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
930Debug.Assert(Enabled, "SplitContainer.OnKeyDown should not be called if the button is disabled"); 1120if (!Enabled) 1137if (!Enabled) 1174if (!Enabled)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
387get => base.Enabled;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
496if (Enabled) 592if (!IsHandleCreated || !Enabled)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
84UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)OwningScrollBar.Enabled,
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
354if (ctrlSender.Enabled) 933if (ctrlSender.Enabled) 1017if (ctrlSender.Enabled)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
77if (Enabled) 98if (Enabled)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
619Debug.Assert(_dataColumns.Enabled, "dataColumns list box and dataBoundColumnRadioButton should be enabled / disabled in sync");
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
260NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.Enabled); 931OnPropertyChanged("Enabled", this.Enabled);