Re: Application Revents Logoff or shutdown
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Sun, 24 Apr 2005 15:19:39 +0200
"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/>
.
- References:
- Prev by Date: Re: Bitmap to Icon
- Next by Date: Re: Why program in C#?
- Previous by thread: Re: Application Revents Logoff or shutdown
- Next by thread: Re: Application Revents Logoff or shutdown
- Index(es):