FormControl.Open Method (Stream, AppDomain, String)
Opens a form file (.xml) from a file stream 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 ( _
xmlDataStream As Stream, _
customAppDomain As AppDomain, _
inputParameters As String _
)
'Usage
Dim instance As FormControl
Dim xmlDataStream As Stream
Dim customAppDomain As AppDomain
Dim inputParameters As String
instance.Open(xmlDataStream, customAppDomain, _
inputParameters)
public virtual void Open(
Stream xmlDataStream,
AppDomain customAppDomain,
string inputParameters
)
Parameters
xmlDataStream
Type: System.IO.StreamThe file stream (Stream) containing the XML data used to populate the new form.
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.