Share via


FormControl.Open method (Stream)

Opens a form file (.xml) from a file stream (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 _
)
'Usage
Dim instance As FormControl
Dim xmlDataStream As Stream

instance.Open(xmlDataStream)
public virtual void Open(
    Stream xmlDataStream
)

Parameters

  • xmlDataStream
    Type: System.IO.Stream

    The file stream (System.IO.Stream) containing the form file (.xml).

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