当按下回车时,触发某“确定”按钮事件
如下所示:
private void txtKCodeSN_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
btnAdd_Click(null, null);
}
}
如下所示:
private void txtKCodeSN_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
btnAdd_Click(null, null);
}
}