i m using webbrowser control in my c# application but the document_completed fun is called for three times and i implemented my logics in this function.i want to check wether a document is loaded or not load in webbrowser control how can i check it or can i call this function from another function.
i m using webbrowser control in my c# application but the document_completed fun is
Share
The
DocumentCompletedevent is raised once for each referenced document that has been loaded, which means that for example external CSS files, images and frameset documents will cause the event to be raised as well as the main page.You can check the
Urlproperty of theWebBrowserDocumentCompletedEventArgsthat is passed to the event handler to see which resource or page that the event refers to. That way, you can avoid executing your logic multiple times per request.