Edit

Share via


InfoPathEditor.SetInitEventHandler(_IInitEventHandler) Method

Definition

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

public:
 void SetInitEventHandler(Microsoft::Office::Interop::InfoPath::_IInitEventHandler ^ pHandler);
public void SetInitEventHandler (Microsoft.Office.Interop.InfoPath._IInitEventHandler pHandler);
abstract member SetInitEventHandler : Microsoft.Office.Interop.InfoPath._IInitEventHandler -> unit
Public Sub SetInitEventHandler (pHandler As _IInitEventHandler)

Parameters

pHandler
_IInitEventHandler

The interface that must be implemented in the custom application to handle the event from the InfoPathEditor object.

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 ApplicationWhat's New for InfoPath Developers.

Applies to