ActiveForm property (WinStudio scripts)
Applies To
IWSApplication interface
Definition
Returns a Visual Basic object that references the active form in WinStudio.
Syntax
varObject = Application.ActiveForm
Part | Description |
---|---|
varObject | Required. A Visual Basic variable that is defined as an object and that references the active form. |
Remarks
The Visual Basic Set instruction assigns an object reference to a variable.
Examples
Sub Main()
Dim oForm As IWSForm
oForm = Application.ActiveForm
Application.ShowMessage("The name of the currently active form is " & oForm.Name)
End Sub
Sub Main()
Dim bgColor As String
bgColor = Application.ActiveForm.BackgroundColor
Application.ShowMessage("The background color for this form is " & bgColor)
End Sub