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