_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
Sub InitEventHandler ( _
    punkSender As Object, _
    pDocument As _XDocument, _
    <OutAttribute> ByRef pROMode As XdReadOnlyViewMode _
)
'Usage
Dim instance As _IInitEventHandler
Dim punkSender As Object
Dim pDocument As _XDocument
Dim pROMode As XdReadOnlyViewMode

instance.InitEventHandler(punkSender, _
    pDocument, pROMode)
void InitEventHandler(
    Object punkSender,
    _XDocument pDocument,
    out XdReadOnlyViewMode pROMode
)

Parameters

  • punkSender
    Type: System.Object

    A pointer to the source of the event.

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