private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyValue==13)
{
this.textBox2.Focus();
}
}
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
this.SelectNextControl(this.ActiveControl,true,true,true,true);
}
this.txtBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.EnterToTab);
private void EnterToTab(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyValue==13)
{
SendKeys.Send("{TAB}");
}
}