Example #1
0
        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();
                }
            }
        }
Example #2
0
 private void txtTelefono_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarCls.Solonumeros(e);
 }
Example #3
0
 private void txtNombre_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarCls.Sololetras(e);
 }
Example #4
0
 private void txtIdentidad_KeyPress(object sender, KeyPressEventArgs e)
 {
     ValidarCls.Solonumeros(e);
 }