Groups | Blog | Home
all groups > dotnet interop > july 2004 >

dotnet interop : Web Browser control: navNoHistory flag doesn't work



rsmith_666
7/27/2004 6:38:04 PM
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?
rsmith_666
7/30/2004 8:33:07 AM
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.



[quoted text, click to view]
AddThis Social Bookmark Button