I'm navigating pages in VisualStudio 2012 with C#, the problem is that I can't tell when the page finished loading completely, it WebBrowser
has an event called DocumentCompleted
but it goes through that event several times before it finishes loading the page.
Is there a way to know when the page is fully loaded?
Perhaps the DocumentCompleted event corresponds to another type of process in the navigation.
To know when it has finished transferring data on the web, you need the Navigated event. The other event that you will need to determine when there are changes to this is Navigating, with which you will know when the WebBrowser control is transferring data on the web. Then with Navigated you control when it has finished loading.
I suggest that you fire both Navigating and Navigated events on your application's WebBrowser object, and schedule and check for navigation state changes ( Loading / Loaded ) in the text of a Label.
I have verified that these events do what you ask for in the IDE.
As it comes in this code..