title: Importing a local HTML file/code into a WebBrowser
body: <p>I'm trying to get a local HTML file to display within a <code>WebBrowser</code> in a VB.NET program. I'm using the code below, however it doesn't seem to work, and I can't figure out why:</p>
  
  <pre class="lang-vb prettyprint-override"><code>    'first method
      WebBrowser1.Navigate(@".\index.html");
  
      'second method
      HTML = "normal"
      WebBrowser1.Document.Body.InnerHtml = HTML
  </code></pre>
  
  <p>The first method produces the error "" in the Debug console when I go to run it. If I try it with out the <code>@</code>, I get an empty white page. If I change the address, however ,so I know its a broken URL, I get a 404 message, which makes it seem like it's finding the file but not rendering it?</p>
  
  <p>The second method does the same as the first except no error is produced, its like its finding the text but doing nothing.</p>
  
  <p>In both examples I have tried the following HTML and plain text variations:</p>
  
  <pre><code>&lt;b&gt;bold&lt;/b&gt;normal
  </code></pre>
  
  <p>and</p>
  
  <pre><code>normal
  </code></pre>
  
  <p>Why isn't this simple code working?</p>