Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Escape button.

Posted on 1998-12-14
2
Medium Priority
?
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
brewdog earned 30 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

609 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