Detect logoff or shutdown

J

Jerry Camel

How do you detect when a system is being logged off or shutdown? In VB 6
there was a QueryUnload event that would work if you had a form, but I'm
running in a Sub Main scenario... I can't find any events to code for... Is
there a way to register with the system to be notified of the
logoff/shutdown? Thanks.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top