Hello! In the KeyDown event of the MainWindow, i want a message box to appear when the users presses the +/- on the keyboard. So here is my code:
if e.KeyCode = Keys.OEMPlus then MsgBox("Plus")
if e.KeyCode = Keys.OEMMinus then Msgbox("Minus")
This code works great but not for the +/- from numpad too. It only works with +/- on the main keyboard. How can i make both work?


Reply With Quote