Results 1 to 2 of 2

Thread: webbrowser control

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2003

    webbrowser control

    hey,wonderin when im using webbrowser control and i get page what says "page cannot be displayed"

    basicaly when it says this i want it to show a msg box how cud i do this thanks

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    In a black hole

    Re: webbrowser control

    The easiest way would be using the NavigateError event and cancel the auto search/error page navigation.
    VB Code:
    1. Private Sub WebBrowser1_NavigateError(ByVal pDisp As Object, _
    2.                                       URL As Variant, _
    3.                                       Frame As Variant, _
    4.                                       StatusCode As Variant, _
    5.                                       Cancel As Boolean)
    7.     MsgBox URL
    8.     Cancel = True
    10. End Sub
    To make the error messages more descriptive you could use these constants.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner

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