ICreate.Controls.Bars Send comments on this topic.
Enabled Property
See Also 
ICreate.Controls.Bars Namespace > BarItem Class : Enabled Property






Gets or sets a value indicating whether the BarItem can respond to user interaction.

Syntax

Visual Basic (Declaration) 
Public Property Enabled As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BarItem
Dim value As Boolean
 
instance.Enabled = value
 
value = instance.Enabled
C# 
public bool Enabled {get; set;}
Delphi 
public read-write property Enabled: Boolean; 
JScript 
public function get,set Enabled : boolean
Managed Extensions for C++ 
public: __property bool get_Enabled();
public: __property void set_Enabled( 
   bool value
);
C++/CLI 
public:
property bool Enabled {
   bool get();
   void set (bool value);
}

Return Value

A System.Boolean value, this property determines if the BarItem is enabled and can accept user input or not. If true then the BarItem is enabled and it can accept user input, otherwise it is false and the BarItem cannot accept user input. The default value is true.

Remarks

If enabled then the BarItem responds to mouse clicks, can accept the input focus and process keystrokes when it has focus. If it is not enabled then the BarItem does not respond to mouse clicks nor can it accept the input focus.

Requirements

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

See Also