.net - How to check if webbrowser control is busy/in use? -


I am loading a page in a web browser controller. How can I check when I am done completely? I know about DocumentCompleted, but a page can call it 5 or several times how do I check it completely?

Your document is called the master handler for the main document; Call for each frame inside that document The number depends on the particular webpage you have open.

The use of the ready estate property in the form of Shahlpesh seems appropriate, although I know there is another way of working. Below is the signature of your event handler:

 Zero OnDocumentComplete (object pDisp, ref object url) 

and you have a reference to the main document, then you

 pdisp == mainDoc 

To see whether the call is being from the main document or not. In my experience you should also insert iWebBrowser2 to pisisp, then insert your document property on IHTMLDocument2, then verify that its property is non-empty if so, the document is fully loaded.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -