FormControl.SetInitEventHandler Method

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

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath.FormControl (in microsoft.office.infopath.formcontrol.dll)

Syntax

'Declaration
'Usage

Parameters

  • handler
    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 2007 Form Editing Environment in a Custom Windows Form Application and the "InfoPath Editor Hosted as a Control" section of What's New for InfoPath Developers.

See Also

Reference

FormControl Class
FormControl Members
Microsoft.Office.InfoPath Namespace