Re: Program closure
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Sat, 22 Oct 2005 23:41:15 -0500
Tim Cogher wrote:
The reason I wanted to do this was so that a user could not simply exit the program without saving their unsaved work. ;-)
Handle the OnCloseQuery event. If the work is unsaved, ask the user to save the work. This is usually with a Yes/No/Cancel dialog. If the user cancels that dialog, or accepts, but then cancels the subsequent Save As dialog, then answer the OnCloseQuery event in the negative. If the user saves the work or allows you to discard the changes, then answer OnCloseQuery in the affirmative.
-- Rob .
- Follow-Ups:
- Re: Program closure
- From: Tim Cogher
- Re: Program closure
- References:
- Re: Program closure
- From: Tim Cogher
- Re: Program closure
- Prev by Date: Standard system menu for Main form
- Next by Date: Re: Variables referenced in a project
- Previous by thread: Re: Program closure
- Next by thread: Re: Program closure
- Index(es):