【发布时间】:2015-06-20 09:06:38
【问题描述】:
当我按下Enter 按钮时,它充当Tab,此代码位于form1_keydown 事件中
Control nextControl;
if (e.KeyCode == Keys.Enter)
{
nextControl = GetNextControl(ActiveControl, !e.Shift);
nextControl.Focus();
e.SuppressKeyPress = true;
}
在一个表单中有comboBox,我们按下Enter按钮然后打开New Form。
怎么办,因为它在cmb_KeyPressevent 上不起作用
【问题讨论】:
标签: c# winforms keypress keydown