Hello,
Thank you for your enquiry. If you designed your dialog in the Form Designer, you can make a button associated with a Hotkey by including an ampersand (&) character prior to the letter you wish to make the hotkey, for example:
&File
written in the button caption would mean Alt+F is the hotkey. For the OK button, the caption could be O&K and Alt+K is the hotkey.
You can also set the Modal Result parameter for the button to have the button behave like the standard Windows OK, Cancel, Yes, Abort, Retry and Ignore buttons (mrNone is the default… mr stands for Modal Result, a modal dialog return value which can be tested after the dialog is dismissed to ascertain what type of button was pressed). If you set a button to mrCancel, by default the escape key will dismiss the modal dialog.
Kind Regards,
Advansys Support