How can I get VB.net to work out that i have pressed +-*/ in Keydown events?
At the moment i am using a Select Case:
Select Case e.Key
'Numpad Numbers Keydown Events'
Case Key.NumPad0
Display.Append("0")
txtAnswer.Text = Display.ToString
Case Key.NumPad1
Display.Append("1")
txtAnswer.Text = Display.ToString
However, I can’t find a key. thing to work with the numpad function buttons.
i tried using:
Case AscW(Chr(107))
Display.Append("+")
txtAnswer.Text = Display.ToString
But it didn’t work, can anybody help?
Thanks
Nick
Have you tried Key.Add/Key.Subtract/Key.Multiply/Key.Divide? If that doesn’t work (or those don’t correspond with the C# .net keys) Try looking for ones prefixed with ‘Oem’.