Hy,
I’m using the webbrowser control 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");
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…
Any thoughts would be appreciated….
TWCrap
Simple trick is to hide the browser ofset on your form, so if your width of your form is for example 300 px you place the left of the browser on 350