请教VB中如何判断WebBrowser所访问的网页是否已经到达
2个回答
展开全部
利用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
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
展开全部
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询