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

Trapping the Delete Key ?

Status
Not open for further replies.

maverick

MIS
Apr 21, 1999
193
US
Hey Guys,

Any idea what the code or vbkey??? for the Delate key is ?

the vbkeydelete only seems to trap the Del key on the number pad part of the keyboard...

TIA

"Hacker by Heart"
saenzcorp@hotpop.com
 
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyDelete Then
Debug.print "Got it"
End If
End Sub
 
Thank You !

I will investigate what I was doing wrong.

it seems to work fine, but when I used KeyPress & KeyAscii
it didn't seem to work I'll try it various ways to see what happens,..

Thank Again !!

"Hacker by Heart"
saenzcorp@hotpop.com
 
roger that...

Thanks Guys !

"Hacker by Heart"
saenzcorp@hotpop.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top