Applies to: CbtEvents object
See also: Window object
Occurs when a top-level window is
about to become active.
Syntax:
Private Sub object_ActivateWindow(ByRef Window
As Window, ByRef Cancel
As Boolean)
The ActivateWindow event syntax has these parts:
Part |
Description |
object |
The name of a CbtEvents object. NB: object must be declared using WithEvents. |
Window |
The window about to become active. |
Cancel |
A boolean value that determines whether Window will become
active. Setting Cancel to True prevents the window
from becoming active. |
Example:
When the user changes windows
|