Board index » delphi » how do I close app before windows closes?

how do I close app before windows closes?

I'm trying to have an application update a binary file before windows
closes if the user closes windows prior to closing the application.  Any
suggestions?

 

Re:how do I close app before windows closes?


Quote
In article <6265ve$n8...@news3.mr.net>, wa...@means.net (Wade Gillingham) wrote:

]-I'm trying to have an application update a binary file before windows
]-closes if the user closes windows prior to closing the application.  Any
]-suggestions?
]-

handle the OnCloseQuery event of your main form.

Mark Vaughan

Re:how do I close app before windows closes?


    When Windows95 prepairs to restart the computer or shut down, it tells
all programs to close, your onclose event in the main form should be
executed correctly at this time.. so any code that you need to have run when
the app closes.. put it in there. If you have your program do somthing like
make a dialog or.. extend the running of your program somehow.. a user
dialog will show asking the user if they want to terminate your app. So..
just remember.. no new forms.. and no dialogs.

Dan Pinder
Galaxy Software - Taking the Internet to the Max
http://www.pagesrus.com/galaxy
gal...@sprint.ca

<ORIGINAL MESSAGE>

Quote
>Wade Gillingham wrote in message <6265ve$n8...@news3.mr.net>...
>I'm trying to have an application update a binary file before windows
>closes if the user closes windows prior to closing the application.  Any
>suggestions?

Other Threads