There are occasional variations in KeyCodes
with different countries. I'm not sure about ASCII.
For the accent character it's ASCII 96, which is
connected with KeyPress. The KeyCode is 192,
connected with key up and key down.
You can check any of them easily. Just start a project,
add a text box, and add this code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
Debug.Print "Ascii: " & CStr(KeyAscii)
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Debug.Print "Keycode: " & CStr(KeyCode)
End Sub
That will print the numbers in the debug window as you type
in the textbox.
> Anyone know the code for " ` " (left quote?).. Its the key in the top
left
> hand corner under the escape key.... (UK keyboard, others might be
> different?)
>
> Found all the ordinary ones, but havent a clue for this one! Found a site
> that says its 96? How do I ***ign this?
>
> Sorry for this post, im new to trapping keyboard events..
>
> Ta!
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
>
>