Capture windows shutdown event
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
The closest you're going to get in the .NET class library is the SystemEvents[^] class. It exposes a SessionEnding event that you can use to detect when a user logs off or tries to shutdown the system. Check the documentation for SessionEnding[^] for some other information you'll need to know about this event and what's happening in the system and with your application at the time this event fires.
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007