Solved

Escape button.

Posted on 1998-12-14
2
180 Views
Last Modified: 2012-05-04
I dont want my users to use the Ecape button on the
keyboard.
Does someone have a tip for this?
Code?
0
Comment
Question by:Booty
2 Comments
 
LVL 10

Accepted Solution

by:
brewdog earned 10 total points
ID: 1970917
Do you not want them to use it, ever, in your app? Or just at certain times?

On each form for which you want the Escape key not to work, set the KeyPreview property of the form to Yes and then write code for the KeyDown event of the form that ignores the key, i.e.:

If KeyCode = vbEsc Then Exit Sub

(The syntax might be a little different, but that's the gist.)

Is that what you're looking for?

brewdog
0
 

Author Comment

by:Booty
ID: 1970918
Yes, Thanks.


0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question