_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)

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("096CD73A-0786-11D1-95FA-0080C78EE3BB")> _
Public Interface _IInitEventHandler
'Usage
Dim instance As _IInitEventHandler
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("096CD73A-0786-11D1-95FA-0080C78EE3BB")]
public interface _IInitEventHandler

Remarks

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.

See also

Reference

_IInitEventHandler members

Microsoft.Office.Interop.InfoPath namespace