Window.Activate Method
InfoPath Developer Reference |
Activates the window that is represented by the Window object.
Version Information
Version Added: InfoPath 2003
Syntax
expression.Activate
expression An expression that returns a Window object.
Return Value
Nothing
Remarks
The Activate method can be used only with the editing window types; if used with a designing window type, it will return an error.
To determine whether a window is the active window, use the Active property of the Window object.
Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
Example
In the following example, the Activate method of the Window object is used to activate a window that is associated with the view. Note the check of the window type.
JScript |
---|
|
See Also