title: C# using hidden webbrowser control to get content of page
body: <p>Hy,</p>
  
  <p>I'm using the webbrowser control to get some content of a page and use that in the program (C#).</p>
  
  <p>When I've got the webbrowser visible (this.webBrowser1.Visible = true;) the program just runs fine, but when i set the value to false (this.webBrowser1.Visible = false;), I get errors on this part of code:</p>
  
  <pre><code>HtmlWindow SContentFrame = webBrowser1.Document.Window.Frames[1];
  HtmlWindow Frame_A = SContentFrame.Document.Window.Frames[2];
  HtmlElementCollection bigFontTags = Frame_A.Document.GetElementsByTagName("b");
  </code></pre>
  
  <p>Do I need to select the webbrowser or something like that??? or is there an another problem? Because when the webbrowser controller is visible, this piece of code works, but when I hide the webbrowser, it doesn't work at all...</p>
  
  <p>Any thoughts would be appreciated....</p>
  
  <p>TWCrap</p>