请教VB中如何判断WebBrowser所访问的网页是否已经到达

2024-12-13 15:33:47
推荐回答(2个)
回答1:

利用WebBrowser的NavigateError事件编程即可,比如:

Private Sub WebBrowser1_NavigateError(ByVal pDisp As Object, URL As Variant, Frame As Variant, StatusCode As Variant, Cancel As Boolean)
WebBrowser1.Navigate "本地页面文件名"
Cancel = True
End Sub

回答2:

已经有很多人问过了
请参考
http://zhidao.baidu.com/question/92031799.html