what do i have to look for to know when a website is done loading or is still loading using the webcontrol ?
Printable View
what do i have to look for to know when a website is done loading or is still loading using the webcontrol ?
Try the BUSY property
Either...
Code:Private Sub webbrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Label1.Caption = webbrowser1.LocationName
Label2.Caption = webbrowser1.LocationURL
End Sub
or
Private Sub WebBrowser1_DownloadComplete()
Label1.Caption = webbrowser1.LocationName
Label2.Caption = webbrowser1.LocationURL
End Sub
or
Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
Label1.Caption = webbrowser1.LocationName
Label2.Caption = URL
End Sub