Re: Program closure
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Sat, 24 Sep 2005 13:14:41 -0500
Tim Cogher wrote:
I am trying to force any users of my program to close it using the Exit menu item and not simply stop the program using the top right red cross icon ( in Win XP).
That's an uphill battle. What's wrong with your program that it can't handle being closed the way other programs get closed?
You don't have special clean-up code in your exit menu item's OnClick handler, do you? Move that code to your main form's OnClose or OnCloseQuery event. Those events gets called no matter how the form tries to close. Your exit menu shouldn't have to do anything more than call Close.
-- Rob .
- References:
- Program closure
- From: Tim Cogher
- Program closure
- Prev by Date: Program closure
- Next by Date: Re: Program closure
- Previous by thread: Program closure
- Next by thread: Re: Program closure
- Index(es):
Relevant Pages
|
|