private void textBox9_Buscar_KeyPress(object sender, KeyPressEventArgs e)
        {
            ValidarSoloLetrasSoloNumeros validar = new ValidarSoloLetrasSoloNumeros();

            if (comboBox1_buscar.Text.Equals("NOMBRE"))
            {
                validar.SoloLetras(e);
            }
            if (comboBox1_buscar.Text.Equals("NÚMERO DE CÉDULA"))
            {
                validar.SoloNumeros(e);
            }
        }
 private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
 {
     validar.SoloLetras(e);
 }
Beispiel #3
0
 private void txtNombre_KeyPress(object sender, KeyPressEventArgs e)
 {
     validar.SoloLetras(e);
 }