title: Launch Windows Form Program on Startup
body: <p>I am using below code for launch my program on startup:</p>
  
  <pre><code>RegistryKey rk = Registry.CurrentUser.OpenSubKey
      ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
  
      rk.SetValue(AppName, Application.ExecutablePath);
  </code></pre>
  
  <p>but when run my project this error occourrs:</p>
  
  <blockquote>
    <p>System.UnauthorizedAccessException: 'Attempted to perform an unauthorized operation.'</p>
  </blockquote>