Previous Document Next Document
AppWindow.Active

Property Active As Boolean

Member of AppWindow

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.

Use the Activate method to change the inactive status of the main application window.

The Active property returns a read-only value.

The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.