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
handler
Type: Microsoft.Office.Interop.InfoPath.INotifyHostEventHandlerThe interface that must be implemented in the custom application to handle the event from the FormControl object.
Remarks
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application.