title: C# WebBrowser Navigate to File Path fails (file exists)
body: <p>I have a web browser in C# that I want to make navigate to a path (html file) on my local pc.
  I tried using this:</p>
  
  <pre><code>if (File.Exists(Path + b.HTML))
                  {
                      browserCom1.Navigate(Path + b.HTML);
                  }
  </code></pre>
  
  <p>The file Exists, but the browser is keep opening an error of Internet Explorer: "cannot find file:///(my path here)"</p>
  
  <p>It is weird because the file is correct. for example if I use:</p>
  
  <pre><code>System.Windows.Forms.OpenFileDialog browseFile = new   
  System.Windows.Forms.OpenFileDialog();
    browseFile.ShowDialog();
    String path = browseFile.FileName;
    browserCom1.Navigate(path);
  </code></pre>
  
  <p>and I select the same file that it tried navigating to before, it works. </p>
  
  <p>If I print the above brwseFile File Name to Console(which is the same as my Path+b.HTML by the way), and copy-paste it into the Navigate(...) Function (changing each '\' to '//') it Doesn't work.</p>
  
  <p>I have no Idea what to do. 
  I tried something else like:</p>
  
  <pre><code>String path=(File.Open(Path + b.HTML, FileMode.Open).Name);
  browserCom1.Navigate(path);
  </code></pre>
  
  <p>but the application keep getting freezed upon this.</p>
  
  <p>I also tried with <code>new URI(path)</code> and all.</p>
  
  <p>How can I simpley navigate to a HTML file on my computer? </p>