PC Review


Reply
Thread Tools Rate Thread

Capture application close event

 
 
Tom Grillot
Guest
Posts: n/a
 
      3rd Feb 2006
Is there some way I can capture the application close event (like when the
user clicks the application close button "X") so that I can run some
housekeeping before it closes all the way?

Thanks,
Tom


 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      3rd Feb 2006
"Tom Grillot" wrote in message
news:teQEf.35939$bF.21830@dukeread07
> Is there some way I can capture the application close event (like
> when the user clicks the application close button "X") so that I can
> run some housekeeping before it closes all the way?


There's nothing built-in. The usual method is to have a hidden form
that is always open, and use that form's Close or Unload event to do
your housekeeping.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Tom Grillot
Guest
Posts: n/a
 
      3rd Feb 2006
Ahh, of course... I should have thought of that - Thanks!

Tom

"Dirk Goldgar" <(E-Mail Removed)> wrote in message
news:Oo4q$(E-Mail Removed)...
> "Tom Grillot" wrote in message
> news:teQEf.35939$bF.21830@dukeread07
>> Is there some way I can capture the application close event (like
>> when the user clicks the application close button "X") so that I can
>> run some housekeeping before it closes all the way?

>
> There's nothing built-in. The usual method is to have a hidden form
> that is always open, and use that form's Close or Unload event to do
> your housekeeping.
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture close excel event in .xla Tournifreak Microsoft Excel Programming 5 15th Jul 2008 11:44 AM
Capture Close Button Event John Microsoft Dot NET Framework Forms 3 29th Oct 2005 01:10 AM
Capture the Browser Close event =?Utf-8?B?QmlsbCBNYW5yaW5n?= Microsoft ASP .NET 4 8th Mar 2005 01:15 AM
Capture the before close event Yahya Saad Microsoft Outlook Program Addins 2 8th Nov 2004 08:15 AM
Re: How to Capture MS Access close event ? Douglas J. Steele Microsoft Access Security 2 29th Aug 2003 07:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.