|
-
Jan 17th, 2005, 06:42 AM
#1
Thread Starter
Fanatic Member
Windows Hang on Shutdown
If have an application that exists on the system tray, however if you try to shutdown windows while this application is not closed, windows hangs.
Just wondering is there anyway to handle this gracefully
Cheers
-
Jan 24th, 2005, 04:34 PM
#2
Re: Windows Hang on Shutdown
No idea Strider, especially since you haven't posted any info about this app.
Cheers,
NTG
-
Jan 24th, 2005, 04:46 PM
#3
Re: Windows Hang on Shutdown
If in the form's closing event you have e.Cancel set to True, Windows will not be able to terminate it automatically. You need to add detection to see if Windows is terminating the program due to Windows shutting down and allow it to.
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
-
Jan 25th, 2005, 05:46 AM
#4
Thread Starter
Fanatic Member
Re: Windows Hang on Shutdown
yes i have that in my form_closing event e.cancel = true.
How would it be possible to detect that windows is shutting down from my application?
-
Jan 25th, 2005, 08:55 AM
#5
Re: Windows Hang on Shutdown
Try this, this is what I use and it works quite well.
http://www.vbforums.com/showpost.php...65&postcount=4
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|