摘要:
设置 Form 的 KeyPreview=true 然后在Form 的案件事件里判断按钮类型进行分别调用就可以了 private void Form1_KeyDown(object sender, KeyEventArgs e) { if (!ListViewModel) { if (e.Control) { switch (e.KeyCode) { case Keys.A: addTSB.PerformClick(); break; case Keys.S: saveTSB.PerformClick(); break; case Keys.D: delTSB.PerformClick(); 阅读全文