InfoPathControl Object

InfoPath Developer Reference

Defines methods used from the implementation of an ActiveX control for initializing, uninitializing, enabling, disabling, and saving the state of a control.

Version Information
 Version Added:  InfoPath 2003

Remarks

The InfoPathControl and InfoPathControlSite objects and their methods and properties are designed to be used only from the implementation of an ActiveX control. These objects and their members are not supported in InfoPath form code. For more information on how to create ActiveX controls that work with InfoPath, see the InfoPath Developer Center.

Any backwards-compatible form template that contains a view with an ActiveX control that implements this object model member in its code will generate an error message if it is opened in InfoPath 2003 when service pack features are disabled or unavailable.

The InfoPathControl object defines the following methods that must be implemented by the developer of an ActiveX control for use on InfoPath forms.

Method Description
Init Defines a method that performs any initialization routines required when an instance of the control is added to an InfoPath form.
Uninit Defines a method that performs any clean up routines required before an instance of the control is removed from a view.
Enable Defines a method that InfoPath calls when it needs to enable or disable an instance of the control in a view.
SaveState Defines a method that InfoPath calls when it needs to save the state of an instance of the control in a view.

See Also