I'm using .NET WebBrowser control. How do I know when a web page is fully loaded?
I want to know when the browser is not fetching any more data. (The moment when IE writes 'Done' in its status bar...).
Notes:
- The DocumentComplete/NavigateComplete events might occur multiple times for a web site containing multiple frames.
- The browser ready state doesn't solve the problem either.
- I have tried checking the number of frames in the frame collection and then count the number of times I get DocumentComplete event but this doesn't work either.
- this.WebBrowser.IsBusy doesn't work either. It is always 'false' when checking it in the Document Complete handler.