>>So, Gary, move the code which was supposed to run when the form exits somewhere into that form's .unload() or (better) into some custom method which will be called when user clicks OK.
>
>It depends of what Gary needs, sometimes modal form is mandatory. Nothing should happen during the execution of that form.
I managed to have a top level form behave modal... before anything else was visible, i.e. it was the only form in the app. So, no _screen, no other forms, nothing, it was the only form and the user couldn't do anything else because there wasn't anything else :). It was a password form, simple enough. And it wouldn't .release() until the user had entered a valid password (and it would then launch the app's main form) or canceled (then it would Clear Events and quit).
If there's another way to have a top level form behave as modal, I'd like to know.