【问题标题】:Bind Key to a button C# WFA? [duplicate]将键绑定到按钮 C# WFA? [复制]
【发布时间】:2016-06-15 09:47:07
【问题描述】:

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

我到处都找到了逆向过程的解决方案。

【问题讨论】:

    标签: c# winforms keyboard-shortcuts


    【解决方案1】:

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

    Full MSDN SendKeys documentation here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-03
      • 1970-01-01
      • 1970-01-01
      • 2012-10-30
      • 2020-04-08
      • 2012-01-08
      • 1970-01-01
      相关资源
      最近更新 更多