ToolBarButton.Enabled Property


Gets or sets a value indicating whether the button is enabled.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member Enabled : bool with get, set

Property Value

Type: System.Boolean

true if the button is enabled; otherwise, false. The default is true.

When the Enabled property is set to false, the toolbar button cannot be clicked, and the button's appearance changes. The Image and Text assigned to the button appear grayed out. If the image or text has multiple colors, they display in a monochromatic gray.

.NET Framework
Available since 1.1
Return to top