SebFr 0 Newbie Poster

Hi everyone,

I have an issue with axWebBrowser. The method axWebBrowser1_DocumentComplete is never reached and i don't understand why.

Basically, this is what I have:

private void buttonStart_Click(object sender, EventArgs e)
{
     try {
     ...
     axWebBrowser1.Navigate("http...");
     return;
}
catch {...}
finally {}
}
 
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
     ...
     Console.WriteLine("ENTER HERE!");
}

When I launch the application, the page is loaded well, but ENTER HERE never appeared.
I even tried to put DownloadComplete instead of DocumentComplete but it's still not working.
I don't know what I'm doing wrong.

If you have any suggestions, please let me know.
Thanks a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.