private void txtContraseña_KeyPress(object sender, KeyPressEventArgs e) { ValidarCls.Solonumeros(e); if (e.KeyChar == Convert.ToChar(Keys.Enter)) { if (UsuariosCls.Login(txtNombre.Text, txtContraseña.Text) > 0) { this.Hide(); Principal f = new Principal(); f.ShowDialog(); } else { MessageBox.Show("Error en los datos"); limpiar(); } } }
private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e) { ValidarCls.Solonumeros(e); }
private void txtIdentidad_KeyPress(object sender, KeyPressEventArgs e) { ValidarCls.Solonumeros(e); }