如何运行一个WinForms应用程序的快捷键组合?组合、快捷键、应用程序、WinForms

2023-09-03 02:57:04 作者:狂奔的小裤衩

我尝试运行我的WinForms应用程序(控制 + 移 + 研究)用C#?像Bablyon词典:)我找不到任何懂行的把戏。你能告诉我如何运行应用程序。与控制 + 移组合?

I try to run my WinForms app (Ctrl + Shift + R) with C#? like Bablyon dictionary:) I can not find any knowledgeable trick. Can you show me how to run app. with Ctrl + Shift combination?

我在使用Visual Studio 2008,如果它很重要。

I am using Visual Studio 2008, if it matters.

推荐答案

我不知道什么是巴比伦字典,但机会是,这是不是在C#实现。 Windows已经内置功能用于启动与键盘快捷键的应用程序。你可以指定你想要的任何组合到一个特定的快捷方式,当你preSS这些键,Windows将启动该程序。

I don't know what Babylon dictionary is, but chances are this is not implemented in C#. Windows has built-in functionality for launching applications with keyboard shortcuts. You can assign any combination you want to a particular shortcut, and whenever you press those keys, Windows will launch that program.

例如,您可以指定计算器应用程序,以控制 + F12 。要做到这一点:

For example, you could assign the Calculator application to Ctrl+F12. To do this:

查找或创建到要启动应用程序的快捷方式。 (你的开始菜单或桌面是一个不错的开端。)

Find or create a shortcut to the application you wish to launch. (Your Start menu or desktop is a good place to look.)

快捷方式单击鼠标右键,然后从下拉菜单中选择属性。    

Right-click on the shortcut, and select "Properties" from the drop-down menu.

在属性窗口中,打开快捷方式选项卡,然后单击快捷键对话框。

In the Properties window, open the "Shortcut" tab and click in the "Shortcut Key" box.

preSS你希望使用来启动应用程序的组合键。        

Press the key combination that you wish to use to start the application.

最后,单击确定。现在,pressing来自任何地方的组合键应该启动应用程序。

Finally, click OK. Now, pressing that key combination from anywhere should launch your application.

 
精彩推荐