title: How to run my winform application when computer starts
body: <p>I am just trying to run my winform application when computer starts. I have made the taskbar icon to appear on the left hand side of the system tray. My function everything is working well. But I need in such a way that if I install the winform in a computer. I need this to run after the computer restarts manually or automatically. </p>
  
  <p>For now its like <strong>if I restart the application I again need to launch the application to run it</strong>.
  But I need something like to atuomatically launch the application on system restart. Any idea.</p>
  
  <p>Codes i am trying  </p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
      {
          timer1.Start(); 
          notifyIcon1.BalloonTipTitle = "Minimize to Tray App";
          notifyIcon1.BalloonTipText = "You have successfully minimized your form.";
           notifyIcon1.Visible = true;
              notifyIcon1.ShowBalloonTip(100);
              this.WindowState = FormWindowState.Minimized;
              this.ShowInTaskbar = false;
      }
  
      private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
      {
          this.Show();
          this.WindowState = FormWindowState.Normal;
          this.ShowInTaskbar = true;
      }
  
      private void exitToolStripMenuItem_Click(object sender, EventArgs e)
      {
          System.Environment.Exit(0);
      }
  </code></pre>