|
-
May 17th, 2005, 06:38 AM
#1
Thread Starter
New Member
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
-
May 17th, 2005, 06:45 AM
#2
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.
-
May 17th, 2005, 07:13 AM
#3
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.
-
May 18th, 2005, 02:13 AM
#4
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|