HRESULT AddValidator(int controlId, LPCWSTR validatorId, LPCWSTR message, IValidator **ppValidator = nullptr)

Call this method only if you have a validator you want to create in code instead of with the XML.

Related Topics

IFormController Interface