Previous Document Next Document

Object Model Reference : Classes : A : AppWindow : Methods : AppWindow.Activate


AppWindow.Activate

Sub Activate()

Description

Member of AppWindow

The Activate method makes the main application window active and gives it keyboard focus.

Some operating systems do not allow the application to activate itself, to prevent intervention with the current activity. If the application cannot be activated, the application window flashes on the taskbar, but it does not appear in the foreground.

VBA example

The following VBA example activates the CorelDRAW main application window if it is currently inactive. A window is inactive if it is open but not the currently used Windows application.

Sub Activate()
 If Not AppWindow.Active Then AppWindow.Activate
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.