356 writes to Enabled
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
112ButtonCloseDialog.Enabled = False
PresentationUI (43)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
95_removeButton.Enabled = true; 99_removeButton.Enabled = false;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
133this._removeButton.Enabled = false;
MS\Internal\Documents\RMPublishingDialog.cs (10)
49datePickerValidUntil.Enabled = false; 57textBoxPermissionsContact.Enabled = true; 116datePickerValidUntil.Enabled = true; 149buttonSave.Enabled = _canSave; 555buttonSave.Enabled = isSaveAllowed && _canSave; 556buttonSaveAs.Enabled = isSaveAllowed; 580buttonRemoveUser.Enabled = allowRemove; 632datePickerValidUntil.Enabled = checkBoxValidUntil.Checked; 642textBoxPermissionsContact.Enabled = checkBoxPermissionsContact.Checked; 838buttonEveryone.Enabled = !rightsTable.AnyoneUserPresent;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
264this.textBoxPermissionsContact.Enabled = false; 288this.datePickerValidUntil.Enabled = false;
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
442_buttonRequestDelete.Enabled = false; 443_buttonViewCert.Enabled = false; 475_buttonRequestDelete.Enabled = true; 479_buttonViewCert.Enabled = true; 483_buttonViewCert.Enabled = false; 497_buttonViewCert.Enabled = false;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
109_buttonViewCert.Enabled = false; 119_buttonRequestDelete.Enabled = false;
MS\Internal\Documents\SigningDialog.cs (18)
50_signButton.Enabled = false; 56_signButton.Enabled = documentManager.CanSave; 61_signSaveAsButton.Enabled = DocumentRightsManagementManager.Current.HasPermissionToSave; 130_signButton.Enabled = false; 132_signSaveAsButton.Enabled = false; 136_signButton.Enabled = true; 137_signSaveAsButton.Enabled = saveAsEnabled; 148_signSaveAsButton.Enabled = false; 150_signButton.Enabled = false; 154_signSaveAsButton.Enabled = true; 155_signButton.Enabled = saveEnabled; 204_reasonComboBox.Enabled = false; 205_reasonLabel.Enabled = false; 206_locationTextBox.Enabled = false; 207_locationLabel.Enabled = false; 209_addDigSigCheckBox.Enabled = false; 210_addDocPropCheckBox.Enabled = false; 217_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)
148control.Enabled = value;
System\Windows\Forms\ActiveX\AxHost.cs (1)
332set => base.Enabled = value;
System\Windows\Forms\Control.cs (1)
9038Enabled = true;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
10322_horizScrollBar.Enabled = Enabled; 10336_horizScrollBar.Enabled = false; 10369_vertScrollBar.Enabled = Enabled; 10380_vertScrollBar.Enabled = false; 14976_vertScrollBar.Enabled = true; 14981_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)
299set => 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)
93_cancelButton.Enabled = false;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
388set => 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)
987Control.Enabled = true; 1075Control.Enabled = true;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
183_dataBoundColumnRadioButton.Enabled = true; 189_dataBoundColumnRadioButton.Enabled = false; 484_columnInDataSourceLabel.Enabled = _dataBoundColumnRadioButton.Checked; 485_dataColumns.Enabled = _dataBoundColumnRadioButton.Checked;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
704_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 705_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 748_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 749_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 809_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 810_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 811_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1; 838_moveUp.Enabled = _selectedColumns.SelectedIndex > 0; 839_moveDown.Enabled = _selectedColumns.SelectedIndex < _selectedColumns.Items.Count - 1; 840_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != -1; 1068_moveDown.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex != _selectedColumns.Items.Count - 1; 1069_moveUp.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.SelectedIndex > 0; 1070_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)
86nullValueTextBox.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)
77upDown.Enabled = false;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
247comboBox.Enabled = false;
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (1)
106control.Enabled = isEnabled;
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (1)
60domainUpDown.Enabled = false;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
125"disabled" => new Button() { Enabled = false },
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
264Enabled = enabled
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
290scrollBar.Enabled = true; 302scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
328scrollBar.Enabled = true; 340scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
300scrollBar.Enabled = true; 312scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
315scrollBar.Enabled = true; 327scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
220scrollBar.Enabled = true; 232scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (1)
141linkLabel.Enabled = isEnabled;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
193control.Enabled = enabled; 308control.Enabled = false;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
346monthCalendar.Enabled = enabled;
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (1)
34numericUpDown.Enabled = false;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (2)
122Enabled = enabled 150using SubScrollBar scrollBar = new() { Enabled = true };
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (1)
96control.Enabled = isEnabled;
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (3)
102using TabControl tabControl = new() { Enabled = enabled }; 659using TabControl tabControl = new() { Enabled = enabled }; 743Enabled = enabled
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (8)
125using TabControl tabControl = new() { Enabled = tabControlEnabled }; 383using TabControl tabControl = new() { Enabled = false }; 442using TabControl tabControl = new() { Enabled = false }; 501using TabControl tabControl = new() { Enabled = false }; 678using TabControl tabControl = new() { Enabled = false }; 935using TabControl tabControl = new() { Enabled = false }; 1026using TabControl tabControl = new() { Enabled = false }; 1080using TabControl tabControl = new() { Enabled = tabControlEnabled };
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
412using TabControl tabControl = new() { Enabled = tabControlEnabled };
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (1)
406Enabled = enabled
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (1)
97control.Enabled = isEnabled;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (2)
330trackBar.Enabled = true; 342trackBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (2)
331trackBar.Enabled = true; 343trackBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
193trackBar.Enabled = true; 205trackBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (2)
126using TreeView control = new() { Enabled = isEnabled }; 145using TreeView control = new() { Enabled = false };
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
274scrollBar.Enabled = true; 286scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
312scrollBar.Enabled = true; 324scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
284scrollBar.Enabled = true; 296scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
299scrollBar.Enabled = true; 311scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
220scrollBar.Enabled = true; 232scrollBar.Enabled = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
252Enabled = enabled
System\Windows\Forms\ButtonBaseTests.cs (67)
831Enabled = value 837control.Enabled = value; 842control.Enabled = !value; 869Enabled = value 875control.Enabled = value; 880control.Enabled = !value; 914control.Enabled = value; 922control.Enabled = value; 930control.Enabled = !value; 969control.Enabled = value; 977control.Enabled = value; 985control.Enabled = !value; 1007control.Enabled = false; 1012control.Enabled = false; 1017control.Enabled = true; 1023control.Enabled = false; 1398Enabled = enabled, 1511Enabled = enabled, 1552Enabled = enabled, 1614Enabled = enabled, 1665Enabled = enabled, 1719Enabled = enabled, 2813Enabled = enabled, 2846Enabled = enabled, 2868Enabled = enabled, 2911Enabled = enabled, 2958Enabled = enabled, 4356Enabled = enabled, 4393Enabled = enabled, 4430Enabled = enabled, 4484Enabled = enabled, 5118Enabled = enabled, 5162Enabled = enabled, 5209Enabled = enabled, 5266Enabled = enabled, 5497Enabled = enabled 5542Enabled = enabled 5588Enabled = enabled 5646Enabled = enabled 5762Enabled = enabled 5811Enabled = enabled 5853Enabled = enabled 5916Enabled = enabled 6116Enabled = enabled 6165Enabled = enabled 6233Enabled = enabled, 6278Enabled = enabled, 6311Enabled = enabled, 6369Enabled = enabled, 6433Enabled = enabled, 6465Enabled = enabled, 6531Enabled = enabled 6561Enabled = enabled 6592Enabled = enabled 6645Enabled = enabled 6711Enabled = enabled 6778Enabled = enabled 6947Enabled = enabled, 6991Enabled = enabled, 7038Enabled = enabled, 7095Enabled = enabled, 7377Enabled = enabled, 7421Enabled = enabled, 7468Enabled = enabled, 7525Enabled = enabled, 8951Enabled = false 9065Enabled = false
System\Windows\Forms\ButtonTests.cs (9)
2268Enabled = enabled 2313Enabled = enabled 2377Enabled = enabled, 2421Enabled = enabled, 2453Enabled = enabled, 2510Enabled = enabled, 2570Enabled = enabled, 2601Enabled = enabled, 3302Enabled = false
System\Windows\Forms\ContainerControlTests.cs (2)
807Enabled = false 1033Enabled = false
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
645owner.Enabled = false; 795owner.Enabled = false; 948owner.Enabled = false; 1021owner.Enabled = false; 2348owner.Enabled = false; 2492owner.Enabled = false; 2624owner.Enabled = false; 2688owner.Enabled = false;
System\Windows\Forms\ControlTests.cs (1)
549Enabled = enabled
System\Windows\Forms\ControlTests.Handlers.cs (3)
1551Enabled = false 1555Enabled = false 4438Enabled = false
System\Windows\Forms\ControlTests.Internals.cs (1)
241Enabled = false
System\Windows\Forms\ControlTests.Methods.cs (6)
361Enabled = enabled 7247Enabled = enabled 13550Enabled = false 13668Enabled = false 13881Enabled = false 13995Enabled = false
System\Windows\Forms\ControlTests.Properties.cs (30)
3049Enabled = enabled, 3065Enabled = enabled, 3080Enabled = enabled, 3099Enabled = enabled, 3115Enabled = enabled, 4506Enabled = value 4512control.Enabled = value; 4517control.Enabled = !value; 4540control.Enabled = value; 4548control.Enabled = value; 4556control.Enabled = !value; 4569Enabled = true 4581control.Enabled = false; 4586control.Enabled = false; 4591control.Enabled = true; 4597control.Enabled = false; 4609Enabled = true 4640control.Enabled = false; 4649control.Enabled = false; 4658control.Enabled = true; 4670control.Enabled = false; 4684Enabled = false 4688Enabled = false 4692Enabled = true 4723control.Enabled = false; 4732control.Enabled = false; 4741control.Enabled = true; 4753control.Enabled = false; 4769control.Enabled = false; 4785control.Enabled = false;
System\Windows\Forms\FormTests.cs (3)
267Enabled = true 283Enabled = true 298Enabled = false
System\Windows\Forms\GroupBoxTests.cs (4)
1856Enabled = enabled, 1894Enabled = enabled, 2018Enabled = false 2045Enabled = false
System\Windows\Forms\PictureBoxTests.cs (11)
240Enabled = value 245control.Enabled = value; 249control.Enabled = value; 260control.Enabled = value; 264control.Enabled = value; 268control.Enabled = value; 277Enabled = true 289control.Enabled = false; 294control.Enabled = false; 299control.Enabled = true; 305control.Enabled = false;
System\Windows\Forms\PropertyGridTests.cs (2)
3916propertyGrid.Enabled = enable; 3959propertyGrid.Enabled = true;
System\Windows\Forms\RadioButtonTests.cs (2)
1386Enabled = false 1456Enabled = false
System\Windows\Forms\ScrollBarTests.cs (20)
369Enabled = value 375control.Enabled = value; 380control.Enabled = value; 398control.Enabled = value; 406control.Enabled = value; 414control.Enabled = value; 437control.Enabled = true; 447Enabled = true 459control.Enabled = false; 464control.Enabled = false; 469control.Enabled = true; 475control.Enabled = false; 778Enabled = false 923Enabled = false 1109Enabled = false 1343Enabled = false 1655Enabled = false 2610Enabled = enabled 2622Enabled = enabled 2645Enabled = enabled,
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (2)
53_comboBox.Enabled = enabled; 67_comboBox.Enabled = enabled;
System\Windows\Forms\ToolStripControlHostTests.cs (4)
39yield return new object[] { new Control { Enabled = false } }; 494Enabled = enabled 598c.Enabled = false; 603c.Enabled = true;
System\Windows\Forms\ToolStripItemTests.cs (2)
2471Enabled = ownerEnabled 2493Enabled = parentEnabled
System\Windows\Forms\ToolStripTests.cs (1)
7234toolStrip.Enabled = true;
System\Windows\Forms\UpDownBaseTests.cs (2)
2252Enabled = enabled, 2288Enabled = enabled,
System\Windows\Forms\UserControlTests.cs (2)
1273Enabled = false 1499Enabled = false
TextBoxBaseTests.cs (2)
7338Enabled = false 7456Enabled = false
TextBoxTests.Rendering.cs (1)
21Enabled = false
WindowsFormsIntegration (5)
System\Windows\Integration\WindowsFormsHost.cs (4)
896_focusTarget.Enabled = false; 914{ _focusTarget.Enabled = true; } 928_focusTarget.Enabled = false; 956finally { _focusTarget.Enabled = true; }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
243adapter.Enabled = (bool)value;
WinFormsControlsTest (1)
MultipleControls.cs (1)
127textBox1.Enabled = !textBox1.Enabled;
336 references to Enabled
PresentationUI (3)
MS\Internal\Documents\SigningDialog.cs (3)
131bool saveAsEnabled = _signSaveAsButton.Enabled; 149bool saveEnabled = _signButton.Enabled; 217_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)
143get => GetControl()?.Enabled ?? BOOL.FALSE;
System\Windows\Forms\ActiveX\AxHost.cs (1)
331get => base.Enabled;
System\Windows\Forms\Application.ThreadContext.cs (1)
756bool modalEnabled = CurrentForm is not null && CurrentForm.Enabled;
System\Windows\Forms\Control.cs (11)
1351if (!Enabled) 1754return GetState(States.Enabled) && (ParentInternal is null || ParentInternal.Enabled); 1758bool oldValue = Enabled; 4159bool oldEnabled = Enabled; 4172if (oldEnabled != Enabled) 4327Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4339if (!ctl.Enabled || !ctl.Visible) 6712/// Raises the <see cref="Enabled"/> event. 6727PInvoke.EnableWindow(this, Enabled); 8444|| ((validationConstraints & ValidationConstraints.Enabled) == ValidationConstraints.Enabled && !c.Enabled) 11393if (Enabled)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
744private void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 1091if (!Enabled)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
71&& (Control.Focused || Control.MouseIsOver || (Control.IsDefault && Control.Enabled)); 132bool disabledHighContrast = (!Control.Enabled) && SystemInformation.HighContrast; 235bool disabledHighContrast = (!Control.Enabled) && SystemInformation.HighContrast; 404if (!Control.Enabled) 470if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast) 491if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast) 609ShadowedText = !Control.Enabled, 643Enabled = 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)
23if (Control.Enabled) 42if (Control.Enabled) 61if (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)
35if (!Control.Enabled && disabledColors) 63if (!Control.Enabled) 140if (!Control.Enabled && disabledColors) 181if (!Control.Enabled)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
24if (Control.Enabled) 44if (Control.Enabled) 64if (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 (1)
3767if ((!Enabled || FlatStyle == FlatStyle.Popup) && MouseIsOver)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
82if ((!comboBox.Enabled) || (comboBox.FlatStyle == FlatStyle.Popup)) 88Pen innerPen = comboBox.Enabled ? borderPen : SystemPens.Control; 165Brush brush = (comboBox.Enabled) ? SystemBrushes.ControlText : SystemBrushes.ControlDark; 190=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 194if (!comboBox.Enabled) 203=> comboBox.Enabled ? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2689if (_horizScrollBar.Enabled) 4105if (_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)
4540if (_vertScrollBar.Enabled) 8574Debug.Assert(!_vertScrollBar.Enabled 10322_horizScrollBar.Enabled = Enabled; 10369_vertScrollBar.Enabled = Enabled; 14340if (_horizScrollBar.Enabled) 14968if (IsHandleCreated && Enabled) 16453if (!sb.Visible || !sb.Enabled) 17159if (_horizScrollBar.Enabled) 17180if (_horizScrollBar.Enabled) 26313if (_vertScrollBar.Enabled) 28386if (!Enabled) 28405if (!Enabled)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
252: (VARIANT)_ownerDataGridView.Enabled,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
777DataGridView.Enabled).Calculate(); 809DataGridView.Enabled).Calculate(); 830DataGridView.Enabled).Calculate(); 845DataGridView.Enabled).Calculate(); 901DataGridView.Enabled).Calculate(); 914DataGridView.Enabled, 944DataGridView.Enabled,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
691UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)(_owner?.DataGridView?.Enabled ?? false),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (12)
1399DataGridView.Enabled, 1412DataGridView.Enabled).Calculate(); 1414DataGridView.Enabled, 1424DataGridView.Enabled, 1448DataGridView.Enabled, 1461DataGridView.Enabled).Calculate(); 1463DataGridView.Enabled, 1474DataGridView.Enabled, 1495DataGridView.Enabled, 1508DataGridView.Enabled).Calculate(); 1510DataGridView.Enabled, 1521DataGridView.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)
481UIA_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); 488if (Enabled) 517if (Enabled) 547Color boxColor = Enabled ? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\Labels\Label.cs (5)
849internal void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 989if (!Enabled) 1264color = hdc.FindNearestColor(Enabled ? ForeColor : DisabledColor); 1283if (Enabled) 1297if (Enabled)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (6)
809if (!Enabled) 836if (!Enabled || e.Clicks > 1) 870if (!Enabled || e.Clicks > 1 || _receivedDoubleClick) 898if (!Enabled) 995if (Enabled) 1194if (!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) 729if (!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)
2821if (!Enabled)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
192UIA_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)
458internal bool IsEnabled => this.TryGetOwnerAs(out MonthCalendar? owner) && owner.Enabled;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
972private void Animate() => Animate(animate: !DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
114if (Visible && Enabled)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
825if (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\TabControl\TabPage.cs (1)
298get => 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)
803parentEnabled = Owner.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
192toolStrip.Enabled &&
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
133if (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)
561if (!Enabled) 569int width = Enabled ? 2 : 1; 578if (!Enabled && BorderStyle != BorderStyle.None && !_upDownEdit.ShouldSerializeBackColor())
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
268if (!Enabled) 283if (!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)
1336get => base.Enabled;
System\Windows\Forms\Form.cs (5)
323if (mdiChild is not null && mdiChild.Visible && mdiChild.Enabled) 3759if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible) 4079if (!DesignMode && Enabled && Active) 5382if (!Enabled) 5576if (!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)
503if (Enabled) 599if (!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)
340if (ctrlSender.Enabled) 919if (ctrlSender.Enabled) 1009if (ctrlSender.Enabled)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
77if (Enabled) 98if (Enabled)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
620Debug.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)
74Assert.True(control.Enabled);
System.Windows.Forms.Tests (156)
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
34Assert.Equal(listView.Enabled, (bool)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
127Assert.Equal(scrollBar.Enabled, actual);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
748Assert.Equal(tabControl.Enabled, actual);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (3)
137Assert.True(control.Enabled); 147Assert.False(control.Enabled); 158Assert.True(control.Enabled);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
33Assert.Equal(treeView.Enabled, (bool)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\ButtonBaseTests.cs (18)
61Assert.True(control.Enabled); 789Assert.True(button.Enabled); 799Assert.False(button.Enabled); 833Assert.Equal(value, control.Enabled); 838Assert.Equal(value, control.Enabled); 843Assert.Equal(!value, control.Enabled); 871Assert.Equal(value, control.Enabled); 876Assert.Equal(value, control.Enabled); 881Assert.Equal(!value, control.Enabled); 915Assert.Equal(value, control.Enabled); 923Assert.Equal(value, control.Enabled); 931Assert.Equal(!value, control.Enabled); 970Assert.Equal(value, control.Enabled); 978Assert.Equal(value, control.Enabled); 986Assert.Equal(!value, control.Enabled); 1008Assert.False(control.Enabled); 1013Assert.False(control.Enabled); 1018Assert.True(control.Enabled);
System\Windows\Forms\ButtonTests.cs (1)
64Assert.True(control.Enabled);
System\Windows\Forms\CheckBoxTests.cs (1)
65Assert.True(control.Enabled);
System\Windows\Forms\ComboBoxTests.cs (1)
74Assert.True(control.Enabled);
System\Windows\Forms\ContainerControlTests.cs (1)
75Assert.True(control.Enabled);
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
567Assert.True(control.Enabled); 611Assert.True(control.Enabled); 646Assert.True(control.Enabled); 756Assert.False(control.Enabled); 796Assert.True(control.Enabled); 915Assert.False(control.Enabled); 2264Assert.True(control.Enabled); 2311Assert.True(control.Enabled); 2349Assert.False(control.Enabled); 2455Assert.True(control.Enabled); 2493Assert.False(control.Enabled); 2588Assert.True(control.Enabled);
System\Windows\Forms\ControlTests.cs (5)
56Assert.True(control.Enabled); 145Assert.True(control.Enabled); 241Assert.True(control.Enabled); 337Assert.True(control.Enabled); 433Assert.True(control.Enabled);
System\Windows\Forms\ControlTests.Properties.cs (40)
4508Assert.Equal(value, control.Enabled); 4513Assert.Equal(value, control.Enabled); 4518Assert.Equal(!value, control.Enabled); 4541Assert.Equal(value, control.Enabled); 4549Assert.Equal(value, control.Enabled); 4557Assert.Equal(!value, control.Enabled); 4582Assert.False(control.Enabled); 4587Assert.False(control.Enabled); 4592Assert.True(control.Enabled); 4598Assert.False(control.Enabled); 4641Assert.False(control.Enabled); 4642Assert.False(child1.Enabled); 4643Assert.False(child2.Enabled); 4650Assert.False(control.Enabled); 4651Assert.False(child1.Enabled); 4652Assert.False(child2.Enabled); 4659Assert.True(control.Enabled); 4660Assert.True(child1.Enabled); 4661Assert.True(child2.Enabled); 4671Assert.False(control.Enabled); 4672Assert.False(child1.Enabled); 4673Assert.False(child2.Enabled); 4724Assert.False(control.Enabled); 4725Assert.False(child1.Enabled); 4726Assert.False(child2.Enabled); 4733Assert.False(control.Enabled); 4734Assert.False(child1.Enabled); 4735Assert.False(child2.Enabled); 4742Assert.True(control.Enabled); 4743Assert.False(child1.Enabled); 4744Assert.False(child2.Enabled); 4754Assert.False(control.Enabled); 4755Assert.False(child1.Enabled); 4756Assert.False(child2.Enabled); 4765PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)]; 4770Assert.False(control.Enabled); 4774Assert.True(control.Enabled); 4781PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Enabled)]; 4786Assert.False(control.Enabled); 4790Assert.True(control.Enabled);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
72Assert.True(control.Enabled);
System\Windows\Forms\DateTimePickerTests.cs (1)
72Assert.True(control.Enabled);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
88Assert.True(control.Enabled);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
71Assert.True(control.Enabled);
System\Windows\Forms\DomainUpDownTests.cs (1)
94_sub.Enabled.Should().BeTrue();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
68Assert.True(control.Enabled);
System\Windows\Forms\FormTests.cs (1)
90Assert.True(control.Enabled);
System\Windows\Forms\GroupBoxTests.cs (1)
59Assert.True(control.Enabled);
System\Windows\Forms\HScrollBarTests.cs (1)
67Assert.True(control.Enabled);
System\Windows\Forms\LabelTests.cs (1)
59Assert.True(control.Enabled);
System\Windows\Forms\ListBoxTests.cs (1)
67Assert.True(control.Enabled);
System\Windows\Forms\ListControlTests.cs (1)
63Assert.True(control.Enabled);
System\Windows\Forms\ListViewTests.cs (1)
74Assert.True(control.Enabled);
System\Windows\Forms\MdiClientTests.cs (5)
48Assert.True(control.Enabled); 334Assert.True(control.Enabled); 359Assert.True(control.Enabled); 384Assert.True(control.Enabled); 429Assert.Equal(!designMode, control.Enabled);
System\Windows\Forms\MenuStripTests.cs (1)
75Assert.True(control.Enabled);
System\Windows\Forms\MonthCalendarTests.cs (1)
76Assert.True(control.Enabled);
System\Windows\Forms\PanelTests.cs (1)
69Assert.True(control.Enabled);
System\Windows\Forms\PictureBoxTests.cs (11)
62Assert.True(control.Enabled); 242Assert.Equal(value, control.Enabled); 246Assert.Equal(value, control.Enabled); 250Assert.Equal(value, control.Enabled); 261Assert.Equal(value, control.Enabled); 265Assert.Equal(value, control.Enabled); 269Assert.Equal(value, control.Enabled); 290Assert.False(control.Enabled); 295Assert.False(control.Enabled); 300Assert.True(control.Enabled); 306Assert.False(control.Enabled);
System\Windows\Forms\ProgressBarTests.cs (1)
57Assert.True(control.Enabled);
System\Windows\Forms\PropertyGridTests.cs (1)
98Assert.True(control.Enabled);
System\Windows\Forms\RadioButtonTests.cs (1)
64Assert.True(control.Enabled);
System\Windows\Forms\RichTextBoxTests.cs (1)
75Assert.True(control.Enabled);
System\Windows\Forms\ScrollableControlTests.cs (1)
68Assert.True(control.Enabled);
System\Windows\Forms\ScrollBarTests.cs (11)
57Assert.True(control.Enabled); 371Assert.Equal(value, control.Enabled); 376Assert.Equal(value, control.Enabled); 381Assert.Equal(value, control.Enabled); 399Assert.Equal(value, control.Enabled); 407Assert.Equal(value, control.Enabled); 415Assert.Equal(value, control.Enabled); 460Assert.False(control.Enabled); 465Assert.False(control.Enabled); 470Assert.True(control.Enabled); 476Assert.False(control.Enabled);
System\Windows\Forms\SplitterPanelTests.cs (1)
64Assert.True(control.Enabled);
System\Windows\Forms\SplitterTests.cs (1)
58Assert.True(control.Enabled);
System\Windows\Forms\StatusStripTests.cs (1)
75Assert.True(control.Enabled);
System\Windows\Forms\TabControlTests.cs (1)
60Assert.True(control.Enabled);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
74Assert.True(control.Enabled);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
71Assert.True(control.Enabled);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
81Assert.Equal(c.Enabled, item.Enabled); 599Assert.False(c.Enabled); 604Assert.True(c.Enabled); 872Assert.Equal(value, c.Enabled); 878Assert.Equal(value, c.Enabled); 884Assert.Equal(!value, c.Enabled);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
80Assert.True(control.Enabled);
System\Windows\Forms\ToolStripPanelTests.cs (1)
71Assert.True(control.Enabled);
System\Windows\Forms\ToolStripTests.cs (2)
90Assert.True(control.Enabled); 244Assert.True(control.Enabled);
System\Windows\Forms\TreeViewTests.cs (1)
61Assert.True(control.Enabled);
System\Windows\Forms\UpDownBaseTests.cs (1)
81Assert.True(control.Enabled);
System\Windows\Forms\UserControlTests.cs (1)
75Assert.True(control.Enabled);
System\Windows\Forms\VScrollBarTests.cs (1)
66Assert.True(control.Enabled);
TextBoxTests.cs (1)
66Assert.True(control.Enabled);
TrackBarTests.cs (1)
59Assert.True(control.Enabled);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
265NativeMethodsSetLastError.EnableWindow(this.HwndSource.Handle, this.Enabled); 943OnPropertyChanged("Enabled", this.Enabled);
WinFormsControlsTest (1)
MultipleControls.cs (1)
127textBox1.Enabled = !textBox1.Enabled;