private void TxtName_KeyPress(object sender, KeyPressEventArgs e) { ValidData.SoloLetras(e); if (e.Handled == true) { Error.SetError(txtName, "Se permiten letras unicamente."); } else { Error.Clear(); } }
private void TxtTelephone2_KeyPress_1(object sender, KeyPressEventArgs e) { ValidData.SoloNumeros(e); if (e.Handled == true) { Error.SetError(txtTelephone, "Se permiten números unicamente."); } else { Error.Clear(); } }
private void Txt_Pass_KeyPress(object sender, KeyPressEventArgs e) { ValidData.LetNumEspGui(e); }