HRESULT AddValidator(int controlId, IValidator *pValidator, IControl *pControl = 0)
Call this method only if you have a validator you want to create in code instead of with the XML. This method always returns S_OK.
Related Topics
IFormController Interface