This probably isn't a great fix for your problem when
the dialog exits with a carriage return, but here is a
way around the problem...

1) create an extra button in your dialog.
2) open the properties box, and on the "General" tab,
clear the check marks for "Visible" and "Tab Stop".
(The button will be visible in the resource editor,
but will not be displayed when the program runs.)
On the properties box "Styles" tab, put a check mark
next to "Default button". This button should now
intercept the carriage return key.


i've also had the same problem before.

=o)