在控件的KeyPress事件中编写如下代码:
if (e.KeyChar == (char)13)
{
e.Handled = true;
SendKeys.Send("{TAB}");
}
在控件的KeyPress事件中编写如下代码:
if (e.KeyChar == (char)13)
{
e.Handled = true;
SendKeys.Send("{TAB}");
}
转载于:https://www.cnblogs.com/swtseaman/archive/2011/05/05/2037184.html