In the click() of the close button, put the commands in this order:
CLEAR EVENTS
ThisForm.Release()
-or-
Have a CLEAR ALL in the main program right after READ EVENTS
>I have a form with a close button. Under the click method is:
>thisform.release
>
>and in the destroy event I have a CLEAR EVENTS
>
>which should return control back the the main (calling program) and exit the program. But it only closes the form but for some reason does not clear the READ EVENTS and therefore does not close my program. The form is CLOSEABLE but that does not work either.
>
>Any ideas? Thanks! Marvin
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05