Page 1 of 1

keys?

Posted: Sun Dec 16, 2012 5:28 pm
by Dummy1912
Hello,

anybody can helpme with this problem

i want to use the numb pad to use in my calculator like calc from windows do.

i was thinking maybe this is the one?
Code: Select all
        If e.KeyCode = Keys.NumPad1 Then ""

but i see there are no - + . / *

anybody? know how to use this
instead of pressing the buttons on the screen.

thanks

150 CC if you help me :)

thanks

Re: keys?

Posted: Sun Dec 16, 2012 5:46 pm
by Usman55
Instead of using the numpad for the functions (+,-,*,/), I think there are separate buttons which you can use directly i.e. without the ".NumPad". I don't have VB installed else I would have figured the code out. Sorry.

Re: keys?

Posted: Sun Dec 16, 2012 5:58 pm
by Dummy1912
Usman55 wrote:
Instead of using the numpad for the functions (+,-,*,/), I think there are separate buttons which you can use directly i.e. without the ".NumPad". I don't have VB installed else I would have figured the code out. Sorry.
sorry #Usman55 but there are no normal keys.

like keys.1 don't exist only d1 ect...

but thanks :) maybe somebody else can say :D

Re: keys?

Posted: Sun Dec 16, 2012 6:39 pm
by bisnes_niko
Check them with KeyCode.

I tried msgbox(E.KeyCode) and found out that

* = 106
/ = 111
+ = 107
- = 109

There you go.

Re: keys?

Posted: Sun Dec 16, 2012 6:55 pm
by Dummy1912
thanks #bisnes_niko
it works great.