Reputation: 17268
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?
I am using Visual Studio 2008, if it matters.
Upvotes: 3
Views: 4034
Reputation: 14757
Thats a windows thing, isn't it? Open the properties dialog for the shortcut to you App. There you can press Ctrl + Shift + R in the Shortcut key textbox.
Upvotes: 1
Reputation: 244672
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.
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 the key combination that you wish to use to start the application.
Finally, click OK. Now, pressing that key combination from anywhere should launch your application.
Upvotes: 6
Reputation: 38106
Are you referring to global hotkeys? Try this:
Best way to tackle global hotkey processing in c#?
Upvotes: 1