all groups > dotnet compact framework > january 2006 >
You're in the

dotnet compact framework

group:

Problem loading images in IE with CF 2.0 and WM5


Problem loading images in IE with CF 2.0 and WM5 Neb
1/31/2006 12:25:46 PM
dotnet compact framework:
Hi,

I have a problem that only appears on Windows Mobile 5.0 (not on 2003).
I have a webbrowser object into my CF 2.0 application. I use the
webBrowser.DocumentText method to set my own HTML code (I don't use an
URL). The problem: if this HTML code contains an image tag, the Web
Browser seems to refresh constantly, causing a weird behavior.

To repro this, create a new WM5 application projet in VS2005. Add a
webbrowser object on the form. Then in the Form1() constructor, after
the InitializeComponent() method, cut these lines:

string html = "<html><body><img
src=\"http://www.google.ca/intl/fr_ca/images/logo.gif\"></body></html>";
webBrowser.DocumentText = html;

Run the app. You'll see what I mean. If you run this same code under
WM2003, no flicker.

Any idea why and how to fix?

Thanks,

neb
Re: Problem loading images in IE with CF 2.0 and WM5 ttaschner NO[at]SPAM gmail.com
2/15/2006 11:39:45 AM
I'm running into the same problem in my own application. Does anybody
have an idea how to fix this?
AddThis Social Bookmark Button