1
當我按下按鈕Enter
,它如何在輸入爲選項卡時打開新窗體?
Control nextControl;
if (e.KeyCode == Keys.Enter)
{
nextControl = GetNextControl(ActiveControl, !e.Shift);
nextControl.Focus();
e.SuppressKeyPress = true;
}
有一個形式comboBox
這是我們按下按鈕Enter
然後打開New Form
作爲Tab
這個代碼在form1_keydown
事件。
如何做到這一點,因爲它不cmb_KeyPress
事件工作
是非常感謝 – Elixir