重写方法 ProcessCmdKey 就可以了
{
if ((!(ActiveControl is Button)) && (keyData == Keys.Up || keyData == Keys.Down || keyData == Keys.Enter))
{
if (keyData == Keys.Enter)
{
SendKeys.Send("{TAB}");
return true;
}
if (keyData == Keys.Down)
{
SendKeys.Send("{TAB}");
}
else
{
SendKeys.Send("+{TAB}");
}
return true;
}
else
return base.ProcessCmdKey(ref msg, keyData);
}