Hi folx
I want to close a form (as if the user had clicked on the Cancel button) when the user presses the Escape button.
- The form has: 1 label, 1 textbox, an OK button and a Cancel button.
- The textbox has focus by default.
- If I press the escape key while the textbox has focus, the form beeps.
- If I change the textbox to multiline, which is undesireable, it does not beep.
With that in mind, how do I stop the textbox from beeping (once) before the form hides?
Thank you.
Kind regards
wickyd
I want to close a form (as if the user had clicked on the Cancel button) when the user presses the Escape button.
- The form has: 1 label, 1 textbox, an OK button and a Cancel button.
- The textbox has focus by default.
- If I press the escape key while the textbox has focus, the form beeps.
- If I change the textbox to multiline, which is undesireable, it does not beep.
With that in mind, how do I stop the textbox from beeping (once) before the form hides?
Thank you.
Kind regards
wickyd