Re: Application Revents Logoff or shutdown



"Jm" <jarrodm@xxxxxxxxxxx> schrieb:
I have an app that when running if a user selects logoff or shutdown from
the start menu, it will close itself but not logoff windows or shutdown.
From what i have found so far its most likely something ive declared in my
program that is preventing the logoff, i have tried closing and disposing
forms and sql connections, is there anything else i should be looking for ?

You may want to watch for a shutdown and then terminate your application yourself instead of waiting for Windows to do so.


<URL:http://dotnet.mvps.org/dotnet/samples/windowsandforms/CloseWindow.zip>

Take a look at 'SystemEvents.SessionEnding' too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.