C#注册窗体热键

tinner7 9 0 TXT 2020-08-21 06:08:41

C#注册窗体热键,没有焦点也可以触发 C#代码 private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.A) { btnTest_Click(this, EventArgs.Empty); } } private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-08-21 06:08:41

不错,是我所找的