vb最难编程问题:webbrowser无法判断加载完毕!

2024-12-21 15:55:05
推荐回答(4个)
回答1:

在一个网页里读取网页源码,识别,就可以了,确实webbrowser的进程不是很准

回答2:

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If WebBrowser1.Document.ReadyState = "complete" Then
'Load OK
End If
End Sub

回答3:

Do
DoEvents
If WebBrowser1.ReadyState <> 4 Then Exit Do
Loop
Do
DoEvents
If WebBrowser1.ReadyState = 4 Then Exit Do
Loop

回答4:

DocumentComplete事件不可以吗?