将键绑定到按钮C#WFA?

时间:2016-06-15 09:47:08

标签: c# winforms keyboard-shortcuts

每当点击按钮时,应按下 Ctrl + F1 键。

我到处找到了相反过程的解决方案。

1 个答案:

答案 0 :(得分:3)

您需要:System.Windows.Forms.SendKeys.Send("^{F1}");

Full MSDN SendKeys documentation here