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
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. :)
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
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.