WebBrowser Document Completed Event C#

后端 未结 2 748
野趣味
野趣味 2020-12-30 16:53

Below is the function I use as my browsers\' DocumentCompleted event, and also the navBtnClick() method which is responsible for creating the web b

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 17:26

    For me, http://www.google.com redirects to http://www.google.ca. If something similar happens for you, they you may be getting a document completed event for each of those two documents. Try outputting/tracing WebBrowserDocumentCompletedEventArgs.Url to see what document was completed.

提交回复
热议问题