How to keep a form open after a reboot

Posted on 2012-08-29
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

    Add it to RunOnce registry key at startup and remove it when user closes the application.
    LVL 31

    Accepted Solution

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now