WinStudio
IWSApplication interface
Returns a Visual Basic object that references the active form in WinStudio.
varObject = Application.ActiveForm
Part |
Description |
| varObject | Required. A Visual Basic variable that is defined as an object and that references the active form. |
The Visual Basic Set instruction assigns an object reference to a variable.
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