Hi,
When pressing the EscapeKey I want it to execute the Cancel button Click Event. I have set the KeyPreview for the form to true and catch the Escape Key in the Form_KeyPress Event.
But doesn't seem to call the Cancel button procedure
Your help will be much appreciated.
When pressing the EscapeKey I want it to execute the Cancel button Click Event. I have set the KeyPreview for the form to true and catch the Escape Key in the Form_KeyPress Event.
But doesn't seem to call the Cancel button procedure
Your help will be much appreciated.