Why is the Webbrowser control DocumentComplete event fired for top level frame first?
Based on this article on MSDN: How To Determine When a Page Is Done Loading in WebBrowser Control , and from past discussions on StackOverflow, I would assume that in case of a document with multiple frames, the DocumentComplete event would fire multiple times, and the last time would be for the top level frame. However, using the exact sample code from the above-mentioned MSDN link, I find that if there are multiple DocumentComplete events when doing a Navigate to a URL, the condition is satisfied in the following code the first time, not the last time as the article seems to indicate.