Share via


FormControl.SetNotifyHostEventHandler Method

Sets the event handler in the host application for handling the event that occurs when the NotifyHost method of the XDocument object is used to notify the host application.

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

Syntax

'Declaration
Public Overridable Sub SetNotifyHostEventHandler ( _
    handler As INotifyHostEventHandler _
)
'Usage
Dim instance As FormControl
Dim handler As INotifyHostEventHandler

instance.SetNotifyHostEventHandler(handler)
public virtual void SetNotifyHostEventHandler(
    INotifyHostEventHandler handler
)

Parameters

Remarks

For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application.

See Also

Reference

FormControl Class

FormControl Members

Microsoft.Office.InfoPath Namespace