PC Review


Reply
Thread Tools Rate Thread

Disable Esc Key

 
 
=?Utf-8?B?UmlwcGVy?=
Guest
Posts: n/a
 
      15th Oct 2004
Is there a way to disbale the ESC key so that it won't erase the current
unentered data? If a kiddo pushes in their keyboard, sometimes a fault in
the design of the keyboard tray will hit their ESC key and erase their work.
The easiest way is to disable the ESC key. How?
--
Thanks As Always
Rip
 
Reply With Quote
 
 
 
 
Jamie Richards
Guest
Posts: n/a
 
      15th Oct 2004
Make sure you have KeyPreview set to yes for the form and paste the
following behind it:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
'Comment out the next line, it's just for demo purposes
MsgBox "Esc key disabled."
KeyCode = 0
End If
End Sub

HTH

Jamie

"Ripper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way to disbale the ESC key so that it won't erase the current
> unentered data? If a kiddo pushes in their keyboard, sometimes a fault in
> the design of the keyboard tray will hit their ESC key and erase their
> work.
> The easiest way is to disable the ESC key. How?
> --
> Thanks As Always
> Rip



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Esc Key in a Form =?Utf-8?B?Sm9sb2dz?= Microsoft Access Form Coding 2 21st Jun 2005 01:15 AM
Disable the ESC key? Or recover the text that ESC deletes? fredo@simple-nude.com Windows XP Internet Explorer 0 3rd Aug 2004 11:58 AM
How to disable CTRL+ESC shortcut key belcon Windows XP Security 1 2nd Oct 2003 01:44 AM
Re: PPT 97 - Disable ESC Key TAJ Simmons Microsoft Powerpoint 1 23rd Sep 2003 06:48 PM
Disable the Alt+Tab,Alt+F4,ctr+Alt+Delete ,Alt+esc,Ctrl+Esc keys through C# program Joe Microsoft Dot NET Framework Forms 0 7th Aug 2003 10:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:25 AM.