Windows shutdown trigger event in VB.NET App?

S

Steve Lang

Hi all,

I have a fairly simple VB.Net app in which I capture some data when the user
exits the application the "normal" way. However, I still want to capture the
same data when the application is closed when Windows shuts down, and in the
unlikely event that someone uses the Task Manager to end my process.

I am using a hidden form as the base with a system tray icon, so the
application doesn't sit in the taskbar and there is not usually a visible
form. When the user exits the app, they right click on the system tray icon
and select a menu command.

I am fairly new to .NET, so be gentle. :)

TIA and have a great day!

--
Stephen Lang
Legislative Counsel Bureau
Carson City, NV
GMT+8
slang at lcb <dot> state <dot2> nv <dot3> us
 
H

Herfried K. Wagner [MVP]

S

Steve Lang

Thanks Herfried.

I'll look it over and if I have problems, rest assured I won't hesitate to
ask the groupmind...

Steve
 

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