By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,475 Members | 954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,475 IT Pros & Developers. It's quick & easy.

Keypress detection

P: n/a
How does one detect (in code) when the Delete key has been pressed. The
KeyPress event doesn't respond to this keystroke.

Thanks,

Gord
Sep 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
rkc
On Sep 27, 1:06*pm, "Gord" <x1gor...@telus.netwrote:
How does one detect (in code) when the Delete key has been pressed. *The
KeyPress event doesn't respond to this keystroke.

Thanks,

Gord
Trap for a Keycode value of vbKeyDelete in the KeyUp event of a
particular control or the form itself depending on what you're up to.

You will have to set the form's key preview property to yes to trap
it at form level.
Sep 27 '08 #2

P: n/a
Thanks rkc. I think I can work with that.

Gord

"rkc" <rk*@rkcny.comwrote in message
news:81**********************************@l64g2000 hse.googlegroups.com...
On Sep 27, 1:06 pm, "Gord" <x1gor...@telus.netwrote:
How does one detect (in code) when the Delete key has been pressed. The
KeyPress event doesn't respond to this keystroke.

Thanks,

Gord
Trap for a Keycode value of vbKeyDelete in the KeyUp event of a
particular control or the form itself depending on what you're up to.

You will have to set the form's key preview property to yes to trap
it at form level.
Sep 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.