Get system shutdown info.
Visual Basic
3
Posts
2
Posters
0
Views
1
Watching
-
Hi all. How to check whether system is going to log-off or shutting down in vb.net suggest me. Thanks. Gagan
-
Hi, The Microsoft.Win32 namespace has a SystemEvents class containing a SessionEnding event. The associated SessionEndingEventArgs has a Reason property which can have a value of Logoff or SystemShutdown. I think that's what you need. Alan.