Window2.Activate Method
Activates the window that is represented by the WindowObject object.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Sub Activate
'Usage
Dim instance As Window2
instance.Activate()
void Activate()
Implements
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.
Important
This member 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.
Examples
thisApplication.ActiveWindow.Activate();