Previous Document Next Document
AppWindow.Activate

Sub Activate()

Member of AppWindow

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

In many cases, newer operating systems like Windows 98 and Windows 2000 don’t allow the application to activate itself, to prevent intervention with you’re current activity. If the application is not granted active status in certain situations, the application window starts flashing in the taskbar, but it does not appear in the foreground.

The following code 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 2007 Corel Corporation. All rights reserved.