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
Printable View
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
No idea Strider, especially since you haven't posted any info about this app.
Cheers,
NTG
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.
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?
Try this, this is what I use and it works quite well.
http://www.vbforums.com/showpost.php...65&postcount=4