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 = "*****@*****.**"; } }
private void txtCurp_Leave(object sender, EventArgs e) { if (ValidacionesTXT.ValidarCurp(txtCurp.Text)) { } else { MessageBox.Show("Curp No Valida,Debe de tener el formato : VAAF900124HSRLNR08, " + "Ingrese Curp Valida", "Validacion De Curp", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtCurp.SelectAll(); txtCurp.Focus(); txtCurp.Text = "VAAF900124HSRLNR08"; } }
private void txtEstudio_KeyPress(object sender, KeyPressEventArgs e) { ValidacionesTXT val = new ValidacionesTXT(); val.SoloLetra(e); }
private void txtNombre_KeyPress(object sender, KeyPressEventArgs e) { ValidacionesTXT va = new ValidacionesTXT(); va.SoloLetra(e); }