Share via


FormControl.Open Method (String, AppDomain, String)

Opens a form template file (.xsn) and loads it into the FormControl object.

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

Syntax

'Declaration
Public Overridable Sub Open ( _
    formLocation As String, _
    customAppDomain As AppDomain, _
    inputParameters As String _
)
'Usage
Dim instance As FormControl
Dim formLocation As String
Dim customAppDomain As AppDomain
Dim inputParameters As String

instance.Open(formLocation, customAppDomain, _
    inputParameters)
public virtual void Open(
    string formLocation,
    AppDomain customAppDomain,
    string inputParameters
)

Parameters

  • formLocation
    Type: System.String

    The path or URL to the form template file (.xsn).

  • customAppDomain
    Type: System.AppDomain

    The AppDomain object that represents the application domain in which the application hosting the control is executing.

  • inputParameters
    Type: System.String

    One or more name/value pairs separated by the ampersand (&) character.

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

Open Overload

Microsoft.Office.InfoPath Namespace