Share via


FormControl.Host Property

Gets or sets the object used to access the object model of the host application.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Overridable Property Host As Object
    Get
    Set
'Usage
Dim instance As FormControl
Dim value As Object

value = instance.Host

instance.Host = value
[BrowsableAttribute(false)]
public virtual Object Host { get; set; }

Property Value

Type: System.Object
The object used to access the object model of the host application.

Remarks

Using the Host property, custom form code can call into methods in the host application.

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