如何运行一个WinForms应用程序的快捷键组合? [英] How to run a WinForms application with a keyboard shortcut combination?

查看:137
本文介绍了如何运行一个WinForms应用程序的快捷键组合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行我的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:

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

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

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

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你希望使用来启动应用程序的组合键。 &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;

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.

这篇关于如何运行一个WinForms应用程序的快捷键组合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆