_IInitEventHandler interface

The interface that must be implemented in the host application to handle the event that occurs when a form is loaded in the InfoPathEditor object, which is hosted in a custom application.

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

public interface _IInitEventHandler

The InitEventHandler method of the _IInitEventHandler interface is where custom code should be located to handle the initialization of a form.

The _IInitEventHandler interface 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.