Show All

# taskpane Element

Defines a custom task pane to be used in a Microsoft Office InfoPath 2003 form.

## Type

    xsd:complexType

## Structure

Name | Description
--- | ---
caption | (Required attribute) Defines the caption used in the task pane drop-down list box.
href | (Required attribute) Specifies the relative or absolute Uniform Resource Locator (URL) to an .html file.

## Remarks

The taskpane element is an optional element of the xDocumentClass element.

The task pane is a modeless panel that appears to the right of the main form area. Task panes contain commands specific to completing tasks that are related to a single form. InfoPath supports the use of a single custom task pane.

To get multiple task pane behavior, you can include multiple .htm files in the form template and use the Navigate method of the HTMLTaskPane object in the Microsoft Office InfoPath 2003 object model to navigate to different .htm files.

## Example

The following is an example of the taskpane element:

    <xsf:xDocumentClass>
       ...
       <xsf:taskpane
          caption="Design Issues Help"
          href="DesignIssuesHelp.htm"/>
       ...
    </xsf:xDocumentClass>

©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