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

Delete key pressed

Status
Not open for further replies.

benlinkknilneb

Programmer
Joined
May 16, 2002
Messages
590
Location
US
Hi all,

I have some controls on my form that I want to remove when the user presses the "Del" key. The thing is, the keypress event doesn't fire when they press it; I got "Backspace" to work, but I want to enable Delete as well. Any suggestions?

Ben
 

try using KeyDown event. The KeyCode for del key is 46

Email: pankajmsm@yahoo.com
 
Thanks... I remember that now from VB6; something about KeyPress vs KeyDown, and they don't do exactly the same thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top