Beispiel #1
0
        private void EmailTB_Validating(object sender, CancelEventArgs e)
        {
            string Email = EmailTB.Text.Trim();

            if (string.IsNullOrEmpty(Email))
            {
                EmailErr.SetError(EmailTB, "You have to enter an email");
                e.Cancel = true;
            }
        }
Beispiel #2
0
 private void EmailTB_Validated(object sender, EventArgs e)
 {
     EmailErr.Clear();
 }