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
Printable View
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
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
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.
Thanx a lot guys..... :)