IntelliCAD 11.1 Object Library | |
ActiveWindow Property | |
See Also |
Application Object : ActiveWindow Property |
Description
Returns the active window object.
Property type
Read-only property
Syntax
Visual Basic |
---|
Public Property ActiveWindow As Window |
Example
Private Sub ActiveWindowExample()
Msg = "Want to close the active window?"
Title = "ActiveWindow Example"
Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then ' User chose Yes.
Application.ActiveWindow.Close
End If
End Sub