I've created a project with a web browser control according to KB article 325079 (C#). The BeforeNavigate2 event fires correctly, but I'm not able to prevent the URL's from going into the browser history. I've tried to modify the Flags parameter in BeforeNavigate2 event but that had no effect and I tried passing the flag as part of the Navigate2 method. No luck. Has anyone had success with this?
RON
The answer from MS Support:
The navNoHistory flag (2) doesn't add the URL to the Session History (which is what Back/Forward are based on. If you right click on the web page in the WebBrowser control after you navigated to the webpage with the "navNoHistory" set, you won't see that the Back option is enabled anymore.), but it does add it to the Global History. This is the way the flag works.
All instances of IE and the WebBrowser control share a global history. There may be plans to be separate this out in future versions, but we are not sure when.
> I've created a project with a web browser control according to KB article 325079 (C#). The BeforeNavigate2 event fires correctly, but I'm not able to prevent the URL's from going into the browser history. I've tried to modify the Flags parameter in BeforeNavigate2 event but that had no effect and I tried passing the flag as part of the Navigate2 method. No luck. Has anyone had success with this?
> RON