Exemple #1
0
 private void TXT_Destination_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BTN_Print.Focus();
     }
 }
Exemple #2
0
 private void TXT_Destination_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BTN_Print.Focus();
     }
     else if (e.KeyCode == Keys.Escape)
     {
         this.Close();
     }
     else if (e.KeyCode == Keys.Up)
     {
         if (NUD_Copies.Value < 100)
         {
             NUD_Copies.Value++;
         }
     }
     else if (e.KeyCode == Keys.Down)
     {
         if (NUD_Copies.Value > 1)
         {
             NUD_Copies.Value--;
         }
     }
 }