comboBox执行回车键变Tab键
comboBox执行回车键变Tab键
private void comboBox2_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
textBox1.Focus();
}
//是KeyDown而不是KeyUp,否则会多跳一个控件
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
SendKeys.Send("{TAB}");
}