/// <summary> /// validacion solo letras /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtNuevo_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloLetra(e); }
/// <summary> /// validacion sono letras /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtApellido_KeyPress_1(object sender, KeyPressEventArgs e) { Validar.soloLetra(e); }
/// <summary> /// validacion solo numeros /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloNumeros(e); }
/// <summary> /// validacion solo numeros /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void txtDni_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloNumeros(e); txtDni.MaxLength = 8; }
/// <summary> /// valida solo letras /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbCantPuert_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloNumeros(e); }
/// <summary> /// valida solo letras /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbColor_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloLetra(e); }
/// <summary> /// valida solo numeros /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbModelo_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloNumeros(e); }
private void txtNombreApellidoUsuario_KeyPress(object sender, KeyPressEventArgs e) { Validar.soloLetra(e); }