All--

I have a WinForms application that must run a certain block of code before 
shutting down. (Obviously, crashes can't be helped. I'm talking about orderly 
shutdowns.) Shutdown is triggered by the closing of a main form and the 
shutdown code currently executes in the handler for the main form's .Closing 
event handler.

However, the application often seems to close before all of the code in the 
.Closing handler. Is there any way to prevent this?

TIA

--Jekke

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to