Wednesday, October 15, 2008

Key Mapping a simple VB6 Program

This program is for key mapping purposes if you want to know the value of a certain key.

Load a form and please a text box

and type this code

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
msgbox(KeyCode)
End Sub

then run the program

Type any key to the textbox and press enter, a message box will appear with the Value of the key.

Thanks!!!
Yammy

1 comment:

Meriam B. Tabell said...

William keep on discovering something new in your,something interesting to make coz i know you are full of interest,,,ha..ha..