Adds the specified
TextBox
and its associated error label to
the list of form fields to validate.
Namespace: CleanCode.Forms
Assembly: 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 |
---|---|
![]() | if an added Control does not have a Tag property defined. |
![]() | if a pattern attribute has an invalid regular expression. |
![]() | if any of the attributes that take numbers do not have a numerical argument. |
Remarks
See Also