Thursday, October 21, 2010

How to obtain a keystroke in a variable without Text box in VB?

I need to press a key and store its value in an int variable in VB. But i do not want the key pressed to enter the character in Text1.Text (or any textbox) but should directly be stored in a variable.



Eg) If i press numerical key ';1'; then the value ';1'; shud be stored in a variable.



Pls tell me how



ThankyouHow to obtain a keystroke in a variable without Text box in VB?
It's been a looooong time since I last used VB, but if I remember correctly there is a key press event for Forms in VB. You should look into that.

No comments:

Post a Comment