Share via


IInitEventHandler.InitEventHandler Method

Handles the initialization event when a form is loaded in the hosted InfoPathEditor object.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath.FormControl (in Microsoft.Office.InfoPath.FormControl.dll)

Syntax

'Declaration
Sub InitEventHandler ( _
    sender As Object, _
    xmlForm As XmlForm, _
    <OutAttribute> ByRef viewsReadOnlyMode As XdReadOnlyViewMode _
)
'Usage
Dim instance As IInitEventHandler
Dim sender As Object
Dim xmlForm As XmlForm
Dim viewsReadOnlyMode As XdReadOnlyViewMode

instance.InitEventHandler(sender, xmlForm, _
    viewsReadOnlyMode)
void InitEventHandler(
    Object sender,
    XmlForm xmlForm,
    out XdReadOnlyViewMode viewsReadOnlyMode
)

Parameters

  • sender
    Type: System.Object

    A reference to the object that is the source of the event.

Remarks

InitEventHandler method executes after all auxiliary DOMs are loaded but before the Loading 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 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.InfoPath Namespace