作者在 2008-04-12 13:39:43 发布以下内容
private void Form1_Load(object sender, EventArgs e)
{
this.KeyPreview = true;//让窗体接收键盘按键
}
protected override void OnKeyPress(KeyPressEventArgs e)
{
base.OnKeyPress(e);
if (DesignMode) return;
if (e.KeyChar == 13)
{
this.SelectNextControl(this.ActiveControl, true, false, true, true);
}
}