Results 1 to 4 of 4

Thread: Webbrowser control and history

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    251

    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

  2. #2
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871

    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

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    251

    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:
    1. Public Enum BrowserNavConstants
    2.     navOpenInNewWindow = &H1
    3.     navNoHistory = &H2
    4.     navNoReadFromCache = &H4
    5.     navNoWriteToCache = &H8
    6.     navAllowAutosearch = &H10
    7.     navBrowserBar = &H20
    8.     navHyperlink = &H40
    9. End Enum

    And a code in a form, with a web control named web, like this one:

    VB Code:
    1. 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.

  4. #4
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871

    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

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width