WinStudio
IWSFormComponent interface
Returns a Boolean value indicating whether a designated form component is currently enabled or disabled.
object.CurrentlyEnabled
Part |
Description |
object | Required. A reference to a form component object. |
If the return value is:
Sub Main() If ThisForm.Components("ScriptButton").CurrentlyEnabled Then Application.ShowMessage("The Script button is currently enabled.") Else Application.ShowMessage("The Script button is currently disabled.") End If End Sub