how do I make it so when a program is run, it will automatically load the next time the computer is turned on?
Also, how can I detect when the computer is being shut down?
Printable View
how do I make it so when a program is run, it will automatically load the next time the computer is turned on?
Also, how can I detect when the computer is being shut down?
to start a program when your windows session starts, add an entry to the RunOnce section in the Registry or add a link to the autostart group.
To trap the shutdown, you need to subclass your VB form and trap the WM_ENDSESSION message.