kpgraci
Active member
I have a login form (startup form) with OK/Cancel button, and each set on the form as Accept/Cancel button - works fine.
After login my main form loads, it has keypreview on. This main form opens a new form (after user clicks a client search button) with an OK/Cancel set up the same as the login form.
On this search form, the Enter key works (it calls the OKbutton click just fine), but the Esc key does not.
The cancelbutton property if set to the cancel button, and this form does not use keypreview.
The form has focus, I clicked it to be sure, but in any case the enter key works.
What could be wrong?
After login my main form loads, it has keypreview on. This main form opens a new form (after user clicks a client search button) with an OK/Cancel set up the same as the login form.
On this search form, the Enter key works (it calls the OKbutton click just fine), but the Esc key does not.
The cancelbutton property if set to the cancel button, and this form does not use keypreview.
The form has focus, I clicked it to be sure, but in any case the enter key works.
What could be wrong?