Edit

Share via


FormControl.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 FormControl object.

public:
 virtual void SetInitEventHandler(Microsoft::Office::InfoPath::IInitEventHandler ^ handler);
public virtual void SetInitEventHandler (Microsoft.Office.InfoPath.IInitEventHandler handler);
abstract member SetInitEventHandler : Microsoft.Office.InfoPath.IInitEventHandler -> unit
override this.SetInitEventHandler : Microsoft.Office.InfoPath.IInitEventHandler -> unit
Public Overridable Sub SetInitEventHandler (handler As IInitEventHandler)

Parameters

handler
IInitEventHandler

The interface that must be implemented in the custom application to handle the event from the FormControl 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 FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application

Applies to