Beispiel #1
0
 private void NameField_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ButtonLogin.PerformClick();
     }
     if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down || e.KeyCode == Keys.Left || e.KeyCode == Keys.Right)
     {
         PassField.Focus();
     }
 }