_IInitEventHandler.InitEventHandler Method
Handles the initialization event when a form is loaded in the hosted InfoPathEditor object.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Parameters
- punkSender
A pointer to the source of the event.
- pDocument
A reference to the _XDocument object loaded into the InfoPathEditor object.
- pROMode
An XdReadOnlyViewMode enumeration that specifies how the view of the form will be presented.
Remarks
InitEventHandler method executes after all auxiliary DOMs are loaded but before the OnLoad event occurs.
The InitEventHandler method is available for use when the InfoPathEditor object is hosted in a custom application. For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath 2007 Form Editing Environment in a Custom Windows Form Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.
See Also
Reference
_IInitEventHandler Interface
_IInitEventHandler Members
Microsoft.Office.Interop.InfoPath Namespace