Share via


FormControl.HostName Property

Gets or sets the name 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 HostName As String
    Get
    Set
'Usage
Dim instance As FormControl
Dim value As String

value = instance.HostName

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

Property Value

Type: System.String
The name of the host application.

Remarks

The value of the HostName property is used in dialog boxes and error messages in place of the InfoPath product name.

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