Adds the specified TextBox
and its associated error label to
the list of form fields to validate.
Namespace: CleanCode.FormsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
Parameters
- textBox
- Type: System.Windows.Forms TextBox
The text box to validate.
- errLabel
- Type: System.Windows.Forms Label
The error label to activate/deactivate based on validation.
Exceptions
Exception | Condition |
---|---|
System NullReferenceException | if an added Control does not have a Tag property defined. |
System ArgumentException | if a pattern attribute has an invalid regular expression. |
System FormatException | if any of the attributes that take numbers do not have a numerical argument. |
Remarks
See Also