Object Model Reference : Classes : A : AppWindow : Methods : AppWindow.Activate |
Sub Activate()
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.