How to launch a WinForms keyboard shortcut application?

I'm trying to run a WinForms application ( Ctrl+ Shift+ R) using C #? like Babilon's dictionary :) I can’t find any knowledgeable trick. Can you show me how to run the application. with a combination of Ctrl+ Shift?

I am using Visual Studio 2008 if that matters.

+3
source share
4 answers

I don't know what a Babylon dictionary is, but most likely it is not implemented in C #. Windows has built-in functions for launching applications using keyboard shortcuts. You can assign any combination that is required for a specific shortcut, and whenever you press these keys, Windows will launch this program.

For example, you can assign a calculator Ctrl+ application F12. For this:

  • Find or create a shortcut for the application that you want to run. (Your Start menu or desktop is a good place to look.)

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

  • In the Properties window, click the Shortcut tab and click Shortcut.

  • Press the key combination that you want to use to launch the application.        

  • , "". .

+6
+2

Do you mean global hotkeys? Try the following:

Best way to handle global hotkey handling in C #?

+1
source

This is a Windows case, isn't it? Open the properties dialog for the shortcut for the application. There you can click Ctrl+ Shift+ Rin the "Shortcut" text box.

+1
source

Source: https://habr.com/ru/post/1779586/


All Articles