Exemple #1
0
 private void inputTexBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         CheckButton.PerformClick();
         e.SuppressKeyPress = true;
         e.Handled          = true;
     }
 }
 private void CheckEnter(KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         CheckButton.PerformClick();
         e.SuppressKeyPress = true;
         e.Handled          = true;
     }
 }