SetControlEnabled

Definition:

SetControlEnabled(control[, state])

 

Description:

Enable or disable a control.

 

Platforms:

All

 

Parameters:

control - required

Name of the control whose state you want to change.

 

state - optional

Integer indicating required state:

0 = Disable.

1 = Enable. This is the default value if you do not include this parameter.

 

Returns:

nothing

 

Notes:

  • For Timer Controls, this Method will enable\disable the control without changing the Timer's Interval Property. If the Interval Property is set to a value greater than zero, enabling the control will cause the Timer to start running; if the Interval is set to zero, the Timer will not run even if the control is enabled.

  • All controls have an Enabled Property which determines whether the control is enabled or not when the form first loads. SetControlEnabled can be used to programmatically alter the enabled state of a control.


See also:

SetTimerInterval

GetControlEnabled