Share via


InfoPathEditor.SetInitEventHandler method

Sets the event handler in the host application for handling the event that occurs when the form is loaded in the InfoPathEditor object.

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

Syntax

'Declaration
Sub SetInitEventHandler ( _
    pHandler As _IInitEventHandler _
)
'Usage
Dim instance As InfoPathEditor
Dim pHandler As _IInitEventHandler

instance.SetInitEventHandler(pHandler)
void SetInitEventHandler(
    _IInitEventHandler pHandler
)

Parameters

Remarks

Sets the function in the host application that is used as a callback function for the Initialize event, which is called before the InfoPath OnLoad event.

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

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace