Share via


Window2.Activate method

Activates the window that is represented by the WindowObject object.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub Activate
'Usage
Dim instance As Window2

instance.Activate()
void Activate()

Implements

Window.Activate()

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.

Examples

thisApplication.ActiveWindow.Activate();

See also

Reference

Window2 interface

Window2 members

Activate overload

Microsoft.Office.Interop.InfoPath namespace