title: How to open file that is shown in listbox?
body: <p>I have added all startup programs to a listbox. 
  How can I open the file when I select the item and click on a button?</p>
  
  <p>Listbox code:</p>
  
  <pre><code>private void readfiles()
  {
      string startfolder = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
  
      var files = Directory.GetFiles(startfolder).Where(name =&gt; !name.EndsWith(".ini"));
  
      foreach (string file in files)
      {
          startupinfo.Items.Add(System.IO.Path.GetFileName(file));
      }
  }
  </code></pre>