keys?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

keys?
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
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: keys?
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.
Image
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: keys?
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
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

Re: keys?
bisnes_niko
Check them with KeyCode.

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

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

There you go.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: keys?
Dummy1912
thanks #bisnes_niko
it works great.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
5 posts Page 1 of 1
Return to “Coding Help & Support”