JavaScript Editor js editor     Web development 

Main Page

Specifies whether an object can respond to user-generated events. Available at design time and run time.

Object.Enabled[ = lExpr]

Return Value


The settings for the Enabled property are:

Setting Description

True (.T.)

(Default) An object responds to events.

False (.F.)

An object does not respond to events.


Applies To: CheckBox Control | Column Object | ComboBox Control | CommandButton Control | CommandGroup Control | Container Object | Control Object (Visual FoxPro) | EditBox Control | Form Object | Grid Control | Image Control (Visual FoxPro) | Label Control (Visual FoxPro) | Line Control | ListBox Control | OLE Bound Control | OLE Container Control | OptionButton Control | OptionGroup Control | Page Object | PageFrame Control | _SCREEN System Variable | Shape Control | Spinner Control | TextBox Control (Visual FoxPro) | Timer Control | ToolBar Object

The Enabled property allows objects to be enabled or disabled at run time. For example, you can disable objects that do not apply to the current state of the application. You can also disable a control to restrict its use — for example, an edit box can be disabled to display read-only information. If a control is disabled, it cannot be selected.

When a container object has its enabled property set to false (.F.), all of its contained controls are disabled, too. If the user clicks on any of the controls contained in a disabled Form, for example, no events are triggered.

Disabling a Timer control by setting Enabled to false (.F.) cancels the countdown specified by the Timer control's Interval property.

See Also

JavaScript Editor js editor     Web development