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

Listening for the Insert Keystroke

Status
Not open for further replies.

Sameal

Programmer
Aug 6, 2001
142
0
0
US
Can anyone tell me how you can tell when the user presses the Insert key on their keyboard? I tried to use the KeyPress Event of my Form object, however the Insert key did not fire the event at all.
 
Hi,

This should do the trick....

---------------------------------------------------
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyInsert Then MsgBox "INSERT!"
End Sub
--------------------------------------------------- Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top