|
-
Feb 4th, 2008, 05:36 AM
#11
Re: application to run before logout
 Originally Posted by ian kerry
Hi All
I think we have established that I can get users to use my form to log off - which i don't think will be a problem.
I am currently using VB6, can some point me to the sort of code i would need to have a button that would save the time of the logoff and then log off windows?
many thanks.
ian
There is no need to programmatically log off. As a rule of thumb, anything that requires the user to change how they interact with the OS in order to facilitate your application is bad design.
Instead, simply trap the QueryUnload event of your application's main form.
This event is specifically designed exactly for your purpose, and even provides the shutdown reason as an argument.
Moved from General PC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|