0

I want to detect when the user type Dash regardless of his keyboard layout.
I'm using the code suggested by Przemysław Kalita

ghk = new KeyHandler(Keys.PrintScreen, this); // I want to detect the dash press event 
                                             // instead of the PrintScreen keypress  
ghk.Register();  

Any help would be hugely appreciated?

Community
  • 1
  • 1
stacker
  • 21
  • 1
  • 6
  • Your issue may be that you're using "subtract" instead of the "dash", I believe they are two separate key presses. Try using a key of Code 189 in place of your Keys.PrintScreen: ghk = new KeyHandler(Keys.PrintScreen, this); – danielmcn Dec 09 '15 at 12:02
  • Do you mean doing this ghk = new KeyHandler((Keys)189, this); ? – stacker Dec 09 '15 at 12:48

0 Answers0