示例#1
0
 private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validaciones.SoloNumeros(e);
     if ((int)e.KeyChar == (int)Keys.Enter)
     {
         e.Handled = true;
         this.txtDireccion.Focus();
     }
 }
示例#2
0
 private void txtCantidad_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validaciones.SoloNumeros(e);
 }
 private void TxtTelefono_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validaciones.SoloNumeros(e);
 }
 private void TxtBuscarCodigoBarra_PreviewTextInput(object sender, TextCompositionEventArgs e) => Validaciones.SoloNumeros(sender, e);