Solved

Escape button.

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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