shdocvw with IE7 and navigate to a bookmark no longer working



I posted the following on the general group and was directed here:

I have programs that use the WebBrowser control, shdocvw.dll, for rendering
HTML documents that are written to the local file system.

I use a VB.Net statement akin to:
wbrChart.Navigate(mstrPath & mstrFileName, navNoReadFromCache, Nothing,
Nothing, Nothing)
where the mstrFileName is typically default.htm, and wbrChart is the
webBrowser control reference. This works quite well up to and including ie7.

Sometimes, the document has bookmarks, and then I use a statement akin to:
wbrChart.Navigate("file:///" & mstrPath & mstrFileName & "#" & Bookmark,
navNoReadFromCache, Nothing, Nothing, Nothing)
where the bookmark is a number. An example of such a URL is
file:///c:\mypath\default.htm#123. This has worked flawslessly from ie4
through ie6. With ie7, the webbrowser control does not display the
default.htm document, but retains whatever was the previous document.

Anyone have any idea about this? Is this a security violation that needs a
change?

It was recommended that I change the "#" to "%23", which I did but that did
not correct the problem. Anyone have a clue?


.



Relevant Pages

  • Re: VB6 - Webbrowser control - IE7
    ... I have a program used worldwide which includes the Webbrowser control to ... link to my homepage for updates/FAQ etc and to PayPal for donations. ... had to uninstall IE7 due to problems with the broswer ...
    (microsoft.public.vb.general.discussion)
  • IE7 Browser control Navigate gives "The parameter is incorrect"
    ... the IE7 WebBrowser control. ... On a system with IE7 a call to the WebBrowser's Navigate method for a URL ... Works fine with IE6 and before. ... Is this maybe some new security restriction or something? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Disabled Web
    ... IE7, and in my toolbox in VS2005 there is no WebBrowser control, but there ... Why is it not possible for me to add a webbrowser to my Windows application ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • No webbrowser?
    ... IE7, and in my toolbox in VS2005 there is no WebBrowser control, but there ... Why is it not possible for me to add a webbrowser to my Windows application ...
    (microsoft.public.dotnet.framework.windowsforms)