Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyAscii

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do i display the Ascii number of wich key has just been pressed inside a textbox in another textbox ???
 
In the keypressed event, type txtWhatever.text = Index? (or keyascii?). Don't have VB6 on this box, but you will see the name of the variable that the sub procedure accepts in the parentheses.
 
To show the acsii value, of the keypress in text1, in text2.

Private Sub Text1_KeyPress(KeyAscii As Integer)
Text2 = KeyAscii
End Sub Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top