예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
     }
 }
예제 #3
0
 private void Txt_Pass_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidData.LetNumEspGui(e);
 }