Add Validators

A validator defines a set of standard classes for performing common data validation checks, for example, a phone number input field must be numbers. A component can have one or more validators.

this.editbox.Validating += new System.ComponentModel.CancelEventHandler
(editbox_Validating);