How to know the navigation in a webbrowser control is successful?

joefromnaturesoft
joefromnaturesoft used Ask the Experts™
on
There is a chance of failure in

'webbrowser.navigate myurl'

how to determine this.... (I wanna raise a msgbox at this time what to do how to do)

please help

regards

Joe
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
you can use this eventprocedure :

Private Sub WebBrowser1_NavigateError(ByVal pDisp As Object, URL As Variant, Frame As Variant, StatusCode As Variant, Cancel As Boolean)
msgbox "There was an Error Navigating to URL " & url & " - status : " & statuscode
End Sub

Commented:
if the browser cannot open a link it displays the default page (that one with: Page cannot be displayed)
Author of the Year 2009

Commented:
Hi joefromnaturesoft,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rdrunner's comment(s) as an answer.

joefromnaturesoft, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept THIS comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial