回车移动控件焦点

//方法1
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
    if(e.KeyValue==13)//if(e.KeyCode==Keys.Enter)//回车
    {
        this.textBox2.Focus();
    }
}

//方法2
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
    if (e.KeyCode == Keys.Enter)
        this.SelectNextControl(this.ActiveControl,true,true,true,true);
}

//方法3
this.txtBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.EnterToTab);

private void EnterToTab(object sender, System.Windows.Forms.KeyEventArgs e)
{
    if(e.KeyValue==13)//if(e.KeyCode==Keys.Enter)
    {
        SendKeys.Send("{TAB}");
    }
}
Contributors: FHL