Exemplo n.º 1
0
 private void txtCuenta_Leave(object sender, EventArgs e)
 {
     if (ValidacionesTXT.ValidarEmail(txtCuenta.Text))
     {
     }
     else
     {
         MessageBox.Show("formato de correo no valido : [email protected], " +
                         "Escriba Un Correo Valido", "Validacion De Correo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         txtCuenta.SelectAll();
         txtCuenta.Focus();
         txtCuenta.Text = "*****@*****.**";
     }
 }
 private void txtCorreo_Leave(object sender, EventArgs e)
 {
     if (ValidacionesTXT.ValidarEmail(txtCorreo.Text))
     {
     }
     else
     {
         MessageBox.Show("Direccion De Correo Electronico No Valido Debe de tener el formato : [email protected], " +
                         "Favor Sellecione Un Correo Valido", "Validacion De Correo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         txtCorreo.SelectAll();
         txtCorreo.Focus();
         txtCorreo.Text = "*****@*****.**";
     }
 }