How to keep a form open after a reboot

I have a .NET Windows form application that is run by the user. When the computer rebooted, the application is shut down. Is there a way for me to keep the application running even if the machine is rebooted?  I want it to run untill it is manually closed by the user
LVL 35
YZlatAsked:
Who is Participating?
 
Frosty555Commented:
Your application can add itself to the registry or to the Startup folder so that it starts automatically with Windows when it boots.

An example in VB.NET:

http://stackoverflow.com/questions/1377537/how-to-make-my-program-ran-at-startup-vb-net

Your application will still CLOSE when the user reboots their machine, but it will start back up again once Windows comes back up.

Your app may need to run with Administrator privileges to make this change in the registry. Typically this kind of configuration is something that is done by the installer, not directly by the application.
0
 
CodeCruiserCommented:
Add it to RunOnce registry key at startup and remove it when user closes the application.
0
 
YZlatAuthor Commented:
thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.