Loads the specified HTML document into the Microsoft InfoPath custom task pane.
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
The Navigate method cannot be called during an OnLoad event because the view is not yet loaded when this event occurs, and task panes are associated with the view.
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.
In the following example, the Navigate method of the HTMLTaskPaneObject is used to load an HTML document into the custom task pane. The HTML document that it loads is one that is included in the form files of the form template: