CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    showup when computer loads

    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?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: showup when computer loads

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured