InfoStatus
InfoStatus

Reputation: 7113

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?

Upvotes: 4

Views: 400

Answers (1)

liggett78
liggett78

Reputation: 11358

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.

Upvotes: 2

Related Questions