How to prevent a Dialog based App from exiting
I am writing a Dialog based application. Can anyone please tell me how to preventing the app from exiting when the user presses the enter key?
best wishes
Owen
[172 byte] By [
danny_boy] at [2007-11-17 22:40:00]

# 1 Re: How to prevent a Dialog based App from exiting
??
explain more..
a dialog wont close if u press an 'enter' key..
mabye ur focus is on some button, and when u press 'enter' it closes..
Bengi at 2007-11-10 8:41:49 >

# 2 Re: How to prevent a Dialog based App from exiting
Originally posted by Bengi
??
explain more..
a dialog wont close if u press an 'enter' key..
mabye ur focus is on some button, and when u press 'enter' it closes..
This is the default behaviour for a standard dialog with an OK/Cancel button. The OK button is set as the default button which means it will react on enter...
# 4 Re: How to prevent a Dialog based App from exiting
There is a FAQ entry ( http://www.dev-archive.com/FAQS) regarding this (take a look at 1.08).
Additionally Sam Hobbs wrote an article on the topic which can be found here ( http://simplesamples.info/keyboard/index.asp)...