You can omit the button on the form and use a Caption button on the Caption Bar of the Form. It will take an extra click though, to access the one and only option you would set for the caption button. You would use the same code as in your button EEP.
----- Original Message ----- From: "Albert Berry" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Wednesday, April 25, 2012 2:07 PM Subject: [RBASE-L] - Re: Disable [Esc] for form exit? : Razzak, I'm asking the impossible - I want the user to be able to exit : with the regular button, but I don't want the user to exit when he/she : presses escape once too often while working with combo boxes. My present : workaround is to add a bit button in the top right corner of the form to : exit and I have checked the box you have conveniently provided. : : Albert : : On 25/04/2012 11:07 AM, A. Razzak Memon wrote: : > At 12:21 PM 4/25/2012, Albert Berry wrote: : > : >> Is it possible to disable only the [Esc] for closing a form but : >> keeping it : >> for drop downs in comboboxes? : > : > Albert, : > : > Here's how: : > : > While in Form Designer ... : > : > Form Properties or [F11] ... : > : > Form Properties | Dynamic Caption ... : > : > Notice the Check Box for [ ] Disable [Esc] key combination and more ... : > : > That's all there is to it! : > : > Very Best R:egards, : > : > Razzak. : > : > : > : > ----- : > No virus found in this message. : > Checked by AVG - www.avg.com : > Version: 2012.0.2127 / Virus Database: 2411/4958 - Release Date: 04/25/12 : > : > : :

