InfoPathControl.Enable(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a method that must be provided by the developer for InfoPath to call when it needs to enable or disable an instance of the control in a view.
public:
void Enable(bool vfEnabled);
public void Enable (bool vfEnabled);
abstract member Enable : bool -> unit
Public Sub Enable (vfEnabled As Boolean)
Parameters
- vfEnabled
- Boolean
Specifies whether the control is enabled.
Remarks
InfoPath will call the Enable method to enable or disable the control, such as when the view is being refreshed or closed, when the document is signed and should not be edited, or when rules are applied to the form that must disable the control.
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 (http://msdn.microsoft.com/infopath).