Enabled Property

ToolBarButton.Enabled Property

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

[Visual Basic]
Public Property Enabled As Boolean
[C#]
public bool Enabled {get; set;}
[C++]
public: __property bool get_Enabled();
public: __property void set_Enabled(bool);
[JScript]
public function get Enabled() : Boolean;
public function set Enabled(Boolean);

Property Value

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

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ToolBarButton Class | ToolBarButton Members | System.Windows.Forms Namespace

Show:
© 2016 Microsoft