I have a WebBrowser called webBrowser. I call:
webBrowser.Navigate(@"file://C:\Documents and Settings\michaelb\Local Settings\Temp\tmp2F.tmp\OPS\main3.xml#section_5343");
I have a handler for the Navigating event:
Inside the handler I see that e.Url has no properties in which the fragment (i.e. the # onwards) has been retained - all knowledge of the fragment has vanished.
I saw a posting in the WPF forum where a developer had noticed that the WPF browser control was doing this with a URL using the http:// scheme. The expert responding said that this was a known problem and that the workaround
was to use the traditional WinForms browser control (i.e. the one I am using). I, however, am seeing that same problem with this WinForms browser control - the only difference that I am aware of between my case and that described in the other post is that
my URL uses the file:// scheme.
Anyone know a fix?
View Complete Post