I have very strange and stupid problem with .NEt's webBrowser control...
If I do this:
----------------------------------
private void btnGoogle_click (object sender, EventArgs e)
{
webBrowser1.Nav igate(http://www.google.com);
}
----------------------------------
and after that try this:
-----------------------------------
string html;
html = webBrowser1.Doc umentText.ToStr ing();
------------------------------------
I get error: "The system cannot find the file specified. (Exception from
HRESULT: 0x80070002)"
BUT
If I open Google (or any other page), and if I then click any link in
webBrowser, and after that try to get html content, all works fine...
Is there any way to get HTML content while navigating automaticly (with my
buttons)..
Hope I was clear :)
Thanks in advance.
Electronic.HR