EnableButton() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the EnableButton() method to enable or disable the named button associated with the specified control.
Syntax
result = ButtonEnabled(controlID, buttonID, enabled);
Parameters
controlID
A string that indicates the ID of the control associated with the Button Bar control.
buttonID
An integer that indicates the ID of the button. For more information, see Buttons.
Note: If you omit this parameter, all buttons associated with the specified control are enabled or disabled.
enabled
A Boolean value that indicates whether to enable (1) or disable (0) the button.