API Documentation > CorelDRAW > 2025-v26 > AppWindow > IVGAppWindow
AppWindow.Active property
Gets the application's window active status
Syntax:
Property Get Active() As Boolean
Remarks:
The Active property returns a value indicating the status of the CorelDRAW main application window. If the window is active, a value of True is returned, indicating that it is currently in use. If the window is inactive, the return value is False, indicating that the main application window is currently open but not in use. You can use the Activate method to change the inactive status of the main application window.
Examples:
The following VBA example displays the status of the CorelDRAW main application window in a message box.
Sub AppWindowActive()
If AppWindow.Active Then
  MsgBox "CorelDRAW is currently active."
Else
  MsgBox "CorelDRAW is not active at this time."
End If 
End Sub
The following VBA example displays the status of the Corel DESIGNER main application window in a message box.
Sub AppWindowActive()
If AppWindow.Active Then
  MsgBox "Corel DESIGNER is currently active."
Else
  MsgBox "Corel DESIGNER is not active at this time."
End If 
End Sub