How to use Windows Key in my Application

Like:

 Windows Key + E 
Opens a new Explorer Window

And:

 Windows Key + R 
Displays the Run command

How can I use the Windows Key in a KeyDown event of my Application?

Answers


If you want to process these keys in your event handlers, use Keys.LWin and Keys.RWin

Generally I would not recommend using these, because future versions of Windows can introduce new shortcuts that will interfere with your combinations.


Need Your Help

rewrite dynamic url with form submit

php forms .htaccess mod-rewrite url-rewriting

I want to rewrite a dynamic url coming from submit form:

error C2280: attempting to reference a deleted function

c++ pointers compiler-errors deleted-functions

I'm new to game development and very new to c++, but I've started developing a little Arkanoid game. I've had it running previously, but after refactoring (introducing the ArkanoidGame class) it do...