Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to keep a form open after a reboot

Posted on 2012-08-29
Medium Priority
Last Modified: 2012-08-29
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
Question by:YZlat
LVL 83

Assisted Solution

CodeCruiser earned 600 total points
ID: 38346305
Add it to RunOnce registry key at startup and remove it when user closes the application.
LVL 31

Accepted Solution

Frosty555 earned 1400 total points
ID: 38346432
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:


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.
LVL 35

Author Closing Comment

ID: 38346864

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question