Discussion Locked
0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am writing some code that allows the user to cancel any changes that they have made, i therefore need to use the esc key function, what is the code behind it?
7 replies
by is
The simple answer is to use the sendkeys statement:
SendKeys "{ESC}", False
The true/false is whether you want the system to wait for the keystrokes to process.
by tempfn1
The question was auto-closed by TechRepublic
by sales
you might try making a macro using the "sendkeys" command
the symbol for the escape key is
{esc}
then call the macro from your code
good luck
-Doug (Bizproz)
by tempfn1
The question was auto-closed by TechRepublic
by dushy_ant
Capture the keycode value in the keydown event of the textbox.
If the keycode value is 27 then you know that the ESC key is Pressed.
by tempfn1
The question was auto-closed by TechRepublic
by tempfn1
This question was auto closed due to inactivity
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
0 helpful
1 reply
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies