Implemented interface member:
property
Enabled
System.Windows.Forms.ICommandBindingTargetProvider.Enabled
5 overrides of Enabled
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
195public override bool Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
224public override bool Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
70public override bool Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
27public override bool Enabled
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripItemTests.cs (1)
15476public override bool Enabled
124 writes to Enabled
Accessibility_Core_App (1)
PrintingControls.cs (1)
61((ToolStripButton)((ToolStrip)printPreviewDialog1.Controls[1]).Items[0]).Enabled = false;// disable the direct print from printpreview.as when we click that Print button PrintPage event fires again.
System.Windows.Forms (10)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
242set => base.Enabled = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
73set => base.Enabled = value;
System\Windows\Forms\DataBinding\BindingNavigator.cs (8)
519_moveFirstItem!.Enabled = (position > 1); 524_movePreviousItem!.Enabled = (position > 1); 529_moveNextItem!.Enabled = (position < count); 534_moveLastItem!.Enabled = (position < count); 541_addNewItem.Enabled = (_addNewItemUserEnabled && allowNew); 549_deleteItem.Enabled = (_deleteItemUserEnabled && allowRemove && count > 0); 555_positionItem!.Enabled = (position > 0 && count > 0); 560_countItem!.Enabled = (count > 0);
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
1593menu.Items["add"].Enabled = enabled; 1594menu.Items["insert"].Enabled = enabled; 1595menu.Items["delete"].Enabled = enabled; 1596menu.Items["sizemode"].Enabled = enabled; 1597menu.Items["absolute"].Enabled = enabled; 1598menu.Items["percent"].Enabled = enabled; 1599menu.Items["autosize"].Enabled = enabled; 1627menu.Items["delete"].Enabled = false;
System.Windows.Forms.Tests (101)
System\Windows\Forms\ToolStripButtonTests.cs (8)
1047Enabled = enabled, 1064Enabled = enabled 1518Enabled = enabled 1545Enabled = enabled 1572Enabled = enabled 1597Enabled = enabled 1624Enabled = enabled 1651Enabled = enabled
System\Windows\Forms\ToolStripItemTests.cs (90)
1124Enabled = enabled, 1161Enabled = enabled, 1216Enabled = enabled, 1259Enabled = enabled, 1305Enabled = enabled, 1354Enabled = enabled, 1397Enabled = enabled, 1431Enabled = enabled, 2480item.Enabled = enabled; 2502item.Enabled = enabled; 2526Enabled = value 2531item.Enabled = value; 2535item.Enabled = !value; 2547item.Enabled = value; 2552item.Enabled = value; 2557item.Enabled = !value; 2570item.Enabled = false; 2600Enabled = value 2605item.Enabled = value; 2609item.Enabled = !value; 2625item.Enabled = value; 2630item.Enabled = value; 2635item.Enabled = !value; 2652item.Enabled = value; 2657item.Enabled = value; 2662item.Enabled = !value; 2690item.Enabled = value; 2695item.Enabled = value; 2700item.Enabled = !value; 2724item.Enabled = value; 2732item.Enabled = value; 2740item.Enabled = !value; 2760item.Enabled = value; 2765item.Enabled = value; 2770item.Enabled = !value; 2787item.Enabled = value; 2792item.Enabled = value; 2797item.Enabled = !value; 2825item.Enabled = value; 2830item.Enabled = value; 2835item.Enabled = !value; 2871item.Enabled = value; 2879item.Enabled = value; 2887item.Enabled = !value; 2909item.Enabled = false; 2914item.Enabled = false; 2919item.Enabled = true; 2925item.Enabled = false; 6968Enabled = enabled, 7024Enabled = enabled, 9174Enabled = enabled, 9211Enabled = enabled, 9266Enabled = enabled, 9309Enabled = enabled, 9355Enabled = enabled, 9404Enabled = enabled, 9447Enabled = enabled, 9481Enabled = enabled, 11130Enabled = enabled, 11159Enabled = enabled, 11189Enabled = enabled, 11222Enabled = enabled, 11268Enabled = enabled, 11301Enabled = enabled, 12562Enabled = enabled, 12576Enabled = enabled, 13223Enabled = enabled, 13252Enabled = enabled, 13282Enabled = enabled, 13326Enabled = enabled, 13392Enabled = enabled, 13458Enabled = enabled, 13518Enabled = enabled, 13562Enabled = enabled, 13626Enabled = enabled, 13692grip.Enabled = enabled; 13730Enabled = enabled, 13983Enabled = enabled 14010Enabled = enabled 14037Enabled = enabled 14077Enabled = enabled 14278Enabled = enabled 14853Enabled = enabled, 14891Enabled = enabled, 14947Enabled = enabled, 14990Enabled = enabled, 15036Enabled = enabled, 15085Enabled = enabled, 15128Enabled = enabled, 15162Enabled = enabled,
System\Windows\Forms\ToolStripRendererTests.cs (2)
194yield return new object[] { graphics, new SubToolStripItem { Enabled = false }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) }; 303yield return new object[] { new SubToolStripItem() { Enabled = false }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripTests.cs (1)
5822Enabled = toolStripItemEnabled,
WinFormsControlsTest (4)
Dialogs.cs (2)
30Enabled = false, 129_btnOpen.Enabled = propertyGrid1.SelectedObject is not null;
MessageBoxes.cs (2)
21Enabled = false 64_btnOpen.Enabled = propertyGrid1.SelectedObject is not null;
103 references to Enabled
System.Windows.Forms (48)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2895if (string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled) 2959if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241if (keyData == Keys.Space && SupportsSpaceKey && CheckOnClick && Enabled && !IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (2)
53if (_ownerItem.Enabled && _ownerItem.Checked) 60if (!_ownerItem.Enabled && _ownerItem.Selected)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
203arrowColor = Enabled ? SystemColors.HighlightText : SystemColors.ControlDark; 207arrowColor = Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
575if (Enabled || DesignMode) 594if (Enabled || DesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
205Color arrowColor = !item.Enabled ? SystemColors.ControlDark
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (13)
576public virtual bool CanSelect => Enabled; 2032=> Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 2248if (!Enabled && ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText)) 2265if (!Enabled && ParentInternal is not null) 2279if (!Enabled && ParentInternal is not null) 2297if (Enabled) 2466if (Enabled) 2493if (Enabled) 2502if (Enabled && CanSelect && !Selected) 2541if (Enabled) 3020if (Enabled && Available) 3031if (!CanSelect || !Enabled || DesignMode) 3054if (ParentInternal is not null && !ParentInternal.IsDropDown && Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
111UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_ownerItem.Enabled, 169if (!_ownerItem.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
118layoutOptions.ShadowedText = !_ownerItem.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
232return base.Enabled 239return base.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (4)
567if (item.Enabled) 624if (item.Enabled) 681e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 760if (!e.Item.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
789if (e.Item is not null && !e.Item.Enabled) 828if (!e.Item.Enabled) 872textColor = (item is not null && item.Enabled) ? textColor : SystemColors.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
72get => base.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (3)
368if (Enabled && (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space))) 441if (!Enabled) 535if (Enabled && Available)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
31return _owner.Enabled;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (4)
114if (!button.Enabled) 152if (!item.Enabled) 393Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 524Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\DataBinding\BindingNavigator.cs (4)
372_addNewItemUserEnabled = value.Enabled; 402_deleteItemUserEnabled = value.Enabled; 817_addNewItemUserEnabled = _addNewItem!.Enabled; 825_deleteItemUserEnabled = _deleteItem!.Enabled;
System.Windows.Forms.Tests (55)
System\Windows\Forms\ToolStripButtonTests.cs (8)
51Assert.True(item.Enabled); 132Assert.True(item.Enabled); 219Assert.True(item.Enabled); 309Assert.True(item.Enabled); 397Assert.True(item.Enabled); 495Assert.True(item.Enabled); 594Assert.True(button.Enabled); 604Assert.False(button.Enabled);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
49Assert.True(item.Enabled); 138Assert.True(item.Enabled); 237Assert.True(item.Enabled); 345Assert.True(item.Enabled);
System\Windows\Forms\ToolStripItemTests.cs (43)
50Assert.True(item.Enabled); 135Assert.True(item.Enabled); 230Assert.True(item.Enabled); 2477Assert.Equal(ownerEnabled, item.Enabled); 2481Assert.Equal(expected, item.Enabled); 2499Assert.True(item.Enabled); 2503Assert.Equal(expected, item.Enabled); 2528Assert.Equal(value, item.Enabled); 2532Assert.Equal(value, item.Enabled); 2536Assert.Equal(!value, item.Enabled); 2548Assert.Equal(value, item.Enabled); 2553Assert.Equal(value, item.Enabled); 2558Assert.Equal(!value, item.Enabled); 2602Assert.Equal(value, item.Enabled); 2606Assert.Equal(value, item.Enabled); 2610Assert.Equal(!value, item.Enabled); 2626Assert.Equal(value, item.Enabled); 2631Assert.Equal(value, item.Enabled); 2636Assert.Equal(!value, item.Enabled); 2653Assert.Equal(value, item.Enabled); 2658Assert.Equal(value, item.Enabled); 2663Assert.Equal(!value, item.Enabled); 2691Assert.Equal(value, item.Enabled); 2696Assert.Equal(value, item.Enabled); 2701Assert.Equal(!value, item.Enabled); 2725Assert.Equal(value, item.Enabled); 2733Assert.Equal(value, item.Enabled); 2741Assert.Equal(!value, item.Enabled); 2761Assert.Equal(value, item.Enabled); 2766Assert.Equal(value, item.Enabled); 2771Assert.Equal(!value, item.Enabled); 2788Assert.Equal(value, item.Enabled); 2793Assert.Equal(value, item.Enabled); 2798Assert.Equal(!value, item.Enabled); 2826Assert.Equal(value, item.Enabled); 2831Assert.Equal(value, item.Enabled); 2836Assert.Equal(!value, item.Enabled); 2872Assert.Equal(value, item.Enabled); 2880Assert.Equal(value, item.Enabled); 2888Assert.Equal(!value, item.Enabled); 2910Assert.False(item.Enabled); 2915Assert.False(item.Enabled); 2920Assert.True(item.Enabled);