Click to See Complete Forum and Search --> : showup when computer loads


January 17th, 2000, 06:47 PM
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?

Lothar Haensler
January 18th, 2000, 01:36 AM
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.