Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Detect if Users Quit Windows

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm writing a program to control users access to Internet. Access time will be recorded as users sign in. However, some ignorant users may shut down windows before signing out. I wonder if there is a way to detect if a user does so so that sign out is done automatically.
Thanks
 
The UnloadMode parameter in the Form_QueryUnload event will tell you this. A value of vbAppWindows (2) means that Windows is shutting down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top