• 0

Key input in VB6


Question

Im trying to make a prog that would use the numerical keypad as input but it doesnt seem to work. If I use the 1 key that is on top of the letters it works just fine but if I use the key on the numerical keypad then it doesnt do anything... Is there anything I have to do in order to get that working?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Well... That is the code I am using, it adds 1 each to a variable each time the key is pressed... Only problem, when I press the key, it doesnt recognize it...:ermm:

If KeyAscii = vbKeyNumpad9 Then

points1 = points1 + 1

lblpoints1.Caption = points1

End If

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.