Solved

Escape button.

Posted on 1998-12-14
2
181 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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 different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

766 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