|
-
Jul 29th, 2000, 06:17 PM
#1
Thread Starter
Hyperactive Member
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?
-
Jul 29th, 2000, 09:42 PM
#2
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 . I've never used resource files yet, so I wouldn't know. But that link says you can do it.
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
|