WebBrowser control
-
I am using WebBrowser control in VC++ project. WebBrowser loads page form Intranet Server. I don't want to show message like "The page cannot be displayed" in case server is down. I want to show some local html page which will be stored on client computer. Does anyone know how to catch event when page is not successfully loaded from server? Thanks Sanjeev.
-
I am using WebBrowser control in VC++ project. WebBrowser loads page form Intranet Server. I don't want to show message like "The page cannot be displayed" in case server is down. I want to show some local html page which will be stored on client computer. Does anyone know how to catch event when page is not successfully loaded from server? Thanks Sanjeev.
You could try first testing the existence of the page programatically (just send a HEAD request - don't download the page). If the test succeeds, ask the web browser control to load the page. Otherwise, direct the control to a local 404 page. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com