(控件)按回车键时移动鼠标焦点

以C# WinForm 中的TextBox 为例:

     激活事件:Textbox1_keyPress(Object sender,KeyPressEventArgs e)

{

if(e.KeyChar==' ') //判断是否按下回车

{

textBox2.Focus();  //将焦点移动到下一控件上

}

}

原文地址:https://www.cnblogs.com/haimingkaifa/p/5710694.html