【发布时间】:2015-06-20 05:02:55
【问题描述】:
Control nextControl;
if (e.KeyCode == Keys.Enter)
{
nextControl = GetNextControl(ActiveControl, !e.Shift);
if (nextControl == null)
{
nextControl = GetNextControl(null, true);
}
nextControl.Focus();
e.SuppressKeyPress = true;
}
我有这段代码可以将 ENTER 键用作 TAB,但是当我按 Enter 键时,它正在选择文本框值,如图像中所示
【问题讨论】: