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.StringThe path or URL to the form template file (.xsn).
customAppDomain
Type: System.AppDomainThe AppDomain object that represents the application domain in which the application hosting the control is executing.
inputParameters
Type: System.StringOne 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.