C# using hidden webbrowser controll to get content of page
===

Hy,

I'm using the webbrowser controll to get some content of a page and use that in the program (C#).

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:

    HtmlWindow SContentFrame = webBrowser1.Document.Window.Frames[1];
    HtmlWindow Frame_A = SContentFrame.Document.Window.Frames[2];
    HtmlElementCollection bigFontTags = Frame_A.Document.GetElementsByTagName("b");

Does i need to select the webbrowser or something like that??? or is there an another problem? Because when the webbrowser controller is visble, this piece of code works, but when i hide de webbrowser, it doesn't work at all...

Any thoughts would be apriciated....

TWCrap