Show All

# Window Property (HTMLTaskPaneExternal Object)

A read-only property that returns a reference to the Window object associated with a custom task pane.

expression.Window

expression Required. An expression that returns a reference to the HTMLTaskPaneExternal object.

## Security Level

0: Can be accessed without restrictions.

## Remarks

The Window object returned by the Window property represents the currently active Microsoft Office InfoPath 2003 window that is associated with the custom task pane.

## Example

In the following example, the HTMLTaskPaneExternal object is used through the external property of the Dynamic HTML (DHTML) window object to set a reference to the Window object that is part of the InfoPath object model:

    var objWindow;

    objWindow  = window.external.Window;
    objWindow.MailEnvelope.Visible = true;

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp