private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validar.SoloNumeros(e);
     if (char.IsWhiteSpace(e.KeyChar))
     {
         e.Handled = true;
     }
 }
Exemplo n.º 2
0
        private void txtfiltro_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (rdb_ID.Checked == true)
            {
                Validar.SoloNumeros(e);
            }

            if (rdb_Nombre.Checked == true)
            {
                Validar.SoloLetras(e);
            }
        }
Exemplo n.º 3
0
 private void txtMontoFinal_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validar.SoloNumeros(e);
 }
 private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validar.SoloNumeros(e);
     Validar.Espacio(e);
 }
 private void txtIdentidad_KeyPress_1(object sender, KeyPressEventArgs e)
 {
     Validar.SoloNumeros(e);
     Validar.Espacio(e);
 }