Web browser control in a user control - problem!
Posted on 2004-09-03
I have developed a user control that contains the Web Browser control. I have put some code in the WebBrowser_DocumentComplete() event.
When I use this control in VB, and I call the Navigate method of the browser control (through a method of my user control), the WebBrowser_DocumentComplete() event is triggered (after the document download is complete) and my code there is executed.
However, when I use my control in an html page, the user control works fine, but when calling the Navigate method, the code does not execute. In fact, the WebBrowser_DocumentComplete() event is not triggered (entered) at all!
Does anyone know what is going wrong in the case of the html and how to solve this problem?
Please no workarounds (with timers), etc.
Please I want a solution, not only why the problem is happening (if you know why).