HRESULT DisableValidation(int controlId, BOOL disable)

Call this method to either explicitly disable validator for a control or restore normal validation, as shown in Table 31. This method is useful, for example, when you have enable/disable rules for controls that are not covered with form validation and you need to disable validation for a control. In other words, you would not normally call this method. This method always returns S_OK.

Table 31. HRESULT DisableValidation




The control for which you want to enable or disable validation


Set to TRUE to disable validation and to FALSE to restore normal validation


Related Topics

IFormController Interface