you know when the webcontrol surfs and it doesn't find the site it gives you a page that says page not found or some other thing --- how do i make it display what i want instead of it displaying that error page?
Printable View
you know when the webcontrol surfs and it doesn't find the site it gives you a page that says page not found or some other thing --- how do i make it display what i want instead of it displaying that error page?
I believe you set the Webbrowser's Silent mode to True and I think if the page doesn't exist, it doesn't go to any page at all. At least, that's what my web browser does. I don't know about changing pages. But you could probably put something in the DownloadComplete or NavigateComplete2 areas. What my web browser does is when surfing to a page, it'll start loading a few bytes and go back to 0. So the page never got downloaded, and you could put something there. You'd have an error html file in your app's folder. Or use a resource file to store your html, here is the link to do that: http://www.planet-source-code.com/vb...txtCodeId=9968 and if the page isn't found. Webbrowser1.Navigate App.path & "resfile.res" or whatever :p. I've never used resource files yet, so I wouldn't know. But that link says you can do it.