An NDoc Documented Class Library

FormValidator.GetFormValidator Method 

The FormValidator provides static access to the current FormValidator assigned to the specified form.

public static FormValidator GetFormValidator(
   Form form
);

Remarks

If a FormValidator has not already been assigned to the form, a default one is created. This represents the situation where a FormControl has not been placed onto the form. In that case, the FormValidator control would assign itself to the form, replacing the default FormValidator control, if there is one. If a new FormValidator replaces an existing FormValidator, it will inherit the existing FormValidator's BaseValidatorCollection, the collection of BaseValidators already registered with the form, via a FormValidator.

See Also

FormValidator Class | FormValidator Members | Genghis.Windows.Forms Namespace