Solved

Escape Key disable

Posted on 2001-06-15
4
1,013 Views
Last Modified: 2013-12-18
Can I disable the Esc key funtionality in a Document.i.e., on press of Esc should not be functional
0
Comment
Question by:chikkon
4 Comments
 
LVL 5

Expert Comment

by:snocross
ID: 6196469
Are you basicly trying to stop users from exiting a document without saving it first?
0
 
LVL 6

Accepted Solution

by:
ghassan99 earned 100 total points
ID: 6197902
Put this in the global-delaration part of the form:
Declare Function GetAsyncKeyState Lib "user32" (Byval vKey As Long) As Integer

And in the form's queryclose event put this:
If (GetAsyncKeyState(27)) Then
   continue=False
End If

This will disable the 'Esc' key.  But it will not stop the user from clicking the 'X' in the task bar (if you are using R5) or going to menu item file-close.

-Gus
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10476216
chikkon,
No comment has been added lately (987 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to ghassan99 http:#6197902
Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now