Monday, November 1, 2010

Visual Basic Operating Environment Statement : AppActivate

Purpose : The AppActivate statement activates a running Windows program and gives it the Current focus. It does not change the window State property (minimized or maximized) Of the program.

Syntax :
AppActivate ProgramTitle$ [, wait]

AppActivate “ paintbrush - ( Untitled ) “
AppActivate “ paintbrush-( untitled )” , True

The first example gives the paintbrush application the focus, assuming that it is already running and has no file loaded.
The second example works the same as the first example , except that it waits until the calling application has the focus.

No comments:

Post a Comment