FormControl Class

A hostable object that is used to integrate the InfoPath form editing environment into a .NET-based custom application.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.AxHost
          Microsoft.Office.InfoPath.FormControl

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

Syntax

'Declaration
<AxHost.ClsidAttribute("{80757399-5146-11d5-a672-00b0d022e945}")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class FormControl _
    Inherits AxHost
'Usage
Dim instance As FormControl
[AxHost.ClsidAttribute("{80757399-5146-11d5-a672-00b0d022e945}")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class FormControl : AxHost

Remarks

The FormControl editor object provides various properties and methods to open and close form templates, as well as to communicate with the host environment for .NET-based custom applications. The Microsoft.Office.InfoPath.Server assembly provides the hostable XmlFormView control for use in custom Web pages (.aspx).

For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application. For more information about using the XmlFormView control in custom Web pages, see Hosting the InfoPath Form Editing Environment in a Custom Web Form.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

FormControl Members

Microsoft.Office.InfoPath Namespace