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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyPress code of Ctrl + C

Status
Not open for further replies.

checkOut

Technical User
Oct 17, 2002
153
NL
Hi all,

anyone know what's the KeyPress code of Ctrl + C
Copy code

Thnx all,

Gerard
Public Sub KeyPress(KeyAscii)
if <Ctrl + C> then

end if
end Sub
 
To find the code for any key, put a Msgbox in the KeyPress Event. You will find that Ctrl+A thru CTRL+Z come thru Keypress as Keyascii values 1 thru 26. ESC comes thru as 27.

Private Sub Text1_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub


Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top