|
-
Mar 9th, 2005, 01:14 PM
#1
Thread Starter
Addicted Member
Webbrowser control and history
Hello guys,
I am using a webbrowser control in my project. its working very well, but every link that I say to the webbrowser control to navigate, appears later in the internet explorer history (auto complete). I would like to keep the links that my webbrowser control navigates in secret...And not being viewed by the internet explorer history... is there a way to do that?
Thanks for your time,
Elminster
-
Mar 9th, 2005, 02:44 PM
#2
Fanatic Member
Re: Webbrowser control and history
Check out the first article in my signature. It contains the BrowserNavConstants which can come as flags with the Navigate2 method of the Web Browser control. The navNoHistory constant should do what you're looking for.
Author for Visual Basic Web Magazine
-
Mar 10th, 2005, 09:33 AM
#3
Thread Starter
Addicted Member
Re: Webbrowser control and history
Hello,
Really thanks for your help.
But I am trying to make it work but it not seems to addrees the problem.
This is what I am doing:
A module with this code:
VB Code:
Public Enum BrowserNavConstants
navOpenInNewWindow = &H1
navNoHistory = &H2
navNoReadFromCache = &H4
navNoWriteToCache = &H8
navAllowAutosearch = &H10
navBrowserBar = &H20
navHyperlink = &H40
End Enum
And a code in a form, with a web control named web, like this one:
VB Code:
Web.Navigate Link, navNoHistory
No error appears, but the history (using auto complete) still being saved on the internet explorer.
What am I doing wrong?
Thanks for your time,
Elminster
Last edited by Elminster; Mar 10th, 2005 at 10:46 AM.
-
Mar 10th, 2005, 06:57 PM
#4
Fanatic Member
Re: Webbrowser control and history
You're doing wrong nothing. According to the MSDN description it should work, but it appears to be very unreliable. Sometimes the page is added to the history list, sometimes it's not.
Perhaps you should try a different way. You could search the history folder and delete the entries of pages your app browsed to.
Author for Visual Basic Web Magazine
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
|