Share via


Window.Active Property

InfoPath Developer Reference

A read-only property that returns a Boolean value that indicates whether the window associated with the Window object is the active window.

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Active

expression   An expression that returns a Window object.

Return Value
Boolean

Remarks

To designate a window as the active window, use the Activate method of the Window object.

Security Level 0: Can be accessed without restrictions.

Example

In the following example, the Active property of the Window object is used to determine whether the first window contained in the Windows collection is the active window:

JScript
  if (Application.Windows(0).Active)
{
   XDocument.UI.Alert("The window is active.");
}

See Also