Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 检测 WebBrowser 完整页面加载
我如何知道我的网络浏览器是否完成了所有页面的加载?
如何连续显示多个页面,但如果页面尚未在 C# 上完全下载,我无权访问
要检测 WebBrowser 控件何时完成加载,一旦我使用了以下代码:
void BrowserDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (e.Url.AbsolutePath != (sender as WebBrowser).Url.AbsolutePath) { return; } //Page Loading Finished }