Previous Document Next Document

Object Model Reference : Classes : A : AppWindow : Properties : AppWindow.Active


AppWindow.Active

Property Active As Boolean

Description

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.

You can use the Activate method to change the inactive status of the main application window.

The Active property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.