Wally,
Look at the ON SHUTDOWN command. Use it to call you application exit function.
>to all,
>
>How do I let user use the little 'X' in the upper right corner to close an application? Also, how do I let user use the little menu with a 'close' in it that comes from the icon in the upper left corner? I have an application object with exit code that I'm happy with. I fire it from a menu. It cycles through all forms open and deals with them before closing. But how do I get that to fire from these other two spots.
>
>Your help is greatly appreciated.
>
>Wally Noll
Steve Gibson