WebBrowser Problem

I'm currently developping a netcf 2.0 application for wm 5.0 devices.

I've embedded a webbrowser control but i have three problems with it :

1- when i do webbrowser.document = "htmlcode" and there's pictures in the html code, the web browser start flicking.

2- The hyperlink in the browser does not seem to work. The navigating and navigated event are not fired when i click on a link.

3- I would like to be able to move the webbrowser to a specified anchor (#part1) using .net code but the navigate method only accept uri... if i try to open the html file + anchor (\\temp.html#part1) the document is opened ignoring the anchor.

Does anyone have a solution

Thanks a lot,

Elie Rodrigue




Answer this question

WebBrowser Problem

  • Bulldog.NET

    Unfortunately, this is a bug which does not have a workaround as far as we can tell. We are aware of this issue, and we believe it will be fixed in the next service pack.

    David Wrighton

    .NET Compact Framework


  • Dan Imbrogno

    I have this problem too. I'm also setting the DocumentText of the WebBrowser. It starts flickering to and the hyperlinks do not work. I first thought, that I remove all links and pictures of the text, by doing a little bit RegEx.

    But this is no valid solution. I need those icons and links working properly... Saving to a file is also not a valid solution to me...

     


  • vasudupe

    I'm using a WM 5.0 device (eten m600 and dell axim x51v).

  • tschissler

    I have exactly the same issue on a classic .NET framework. On the dev computers, no problem, the events are fired.
    On any other computers, the events are not fired, but the navigate method works.

    Problem spoted there :
    http://www.msdner.com/dev-archive/56/2-8-569558.shtm

    and here :
    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2691914&SiteID=1

    Maybe a link with that :
    http://support.microsoft.com/kb/327135

    Looking at the date of these posts, I hope that there is no trouble about it for one and a half year now.

    Does someone knows what can visual studio install to make it work


  • ljc-ljc

    The only way I was able to get around the constant flickering problem was to write the page html to a file and then use a file:// URI to navigate to it. If the html I tried to set using webBrowser.DocumentText had any images anywhere, the page would just constantly refresh. This is most definitely a bug. I only had the problem with hyperlinks not firing events on a Pocket PC 2003; it works fine on my Axim x51v. I haven't tried to use anchors, so I don't know about that one.

    Deborah

  • jonathannah

    I've seen the first two issues before, both of which seem to be bugs when you run CF 2.0 applications on PocketPC 2003 devices. Are you using a WM 5.0 device

    Deborah

  • GeorgeY

    Hello,

    and what about the Navigating, Navigated, DocumentComplete event that are not fired ! Do you have any clue on this !

    It's not limited to the compact Framework, I experience this kind of issue in the .Net "classical" framework as well.

    Thanks in advance for your answer.

    Seb


  • zrumchik

    Well, writing to a text file then opening it with the webbrowser is not a option to me as i often need to open large html documents with lots of images (for a total size of 1.8 mB to 2.2 mB). And rewriting the file is impossible due to the file being opened by PIE. I prefer not to have to develop an algorithm to save the file to a different name then do cleanup later as a bug in the algorithm would cause a memory leak.

  • WebBrowser Problem