2014-09-27 9 views

ответ

0

Я нашел ответ!

private void textBox2_KeyDown(object sender, KeyEventArgs e) 
     { 
      //Pressing ENTER 
      if (e.KeyCode == Keys.Enter) 
      { 
       button1.Select(); 
       e.SuppressKeyPress = true; 
       SendKeys.Send("{ENTER}");    
      } 

     }