Results 1 to 4 of 4

Thread: How to display custom erro msg in web browser?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    6

    How to display custom erro msg in web browser?

    Hi All,

    I am using web browser control in VB6. If URL not found it displays page can not be displayed messgae, instead i want to display my own message in this conrol itself is it possible?

    Harish

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: How to display custom erro msg in web browser?

    Yes, you can do it. An event is fired (not quite sure which one) when a page cannot be retrieved, or it was retrieved successfully. If it was an error, just display ur own page.

    EDIT: It's the NavigateError Event
    Last edited by Pradeep1210; May 17th, 2005 at 06:50 AM.

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: How to display custom erro msg in web browser?

    Yup, in your NavigateError event handler, you need to set the Cancel parameter to True, and if you want error-specific messages, check the StatusCode parameter, which passes the HTTP (or sometimes Microsoft-specific) error code.

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    6

    Re: How to display custom erro msg in web browser?

    Thanx a lot guys.....

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