CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    8

    Error in webbrowser (HTTP 404)

    Hi!

    I have a WebBrowser control of which I want to know if the page has been loaded correctly or if an error occured (like HTTP 404) and what is this error.

    I know that I can use NavigateError() event with Explorer 6 but I can't demand to all users to download Explorer 6.

    So, I do:

    ...
    If (Left$(pDisp.Document.Title, 8) = "HTTP 404") Then
    Error = "Navigation was not successful"
    ...

    But it causes a problem because I can have users with many different languages systems and I can't identify all the languages used.

    Does someone knows another way to reach this error by an error number or anything else?

    Thanks and I wait for your advices!!!

    Melanie



  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Error in webbrowser (HTTP 404)

    I am not sure whether this will help. I have program a HTTP request using winsock and analyse the response of the header. refer http://vblib.virtualave.net for vbHttp class. alternatively, you can use INet control and execute HEAD command.



    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured