Images cut off in WebBrowser RRS feed

  • Question

  • I am trying to navigate to the following URL in a WebBrowser on my mobile phone.


    If I do so in I.E., it doesn't show the full image, just the first 20% of it.  If I click the menu button after the page downloads, the rest of the image shows up.  Why is that?  I am trying to code a WebBrowser control in the .NET Compact Framework, and it is doing the same thing, except I can't get the full image to download.  Seems this is an issue with Pocket IE.  Any ideas on how to get around this?

    Tuesday, October 12, 2010 3:48 AM

All replies

  • I have a form with a WebBrowser control that should navigate to the following web page:


    When it is opened in the Compact Framework webbrowser control, the image is cut off, only showing the top half of the image.  I can not figure out why, or how to get the full image to display.  I don't get this problem when browsing on my computer, or on the mobile device, only when navigating through the webbrowser control.  I have tried refreshing the control and the form to no avail.


    Any help would be appreciated.


    Here is the code of my form.

        public partial class FormWebBrowser : Form
            #region Private Variables

            #region Constructor
            public FormWebBrowser(string title, string url)
                this.Text = title;
                labelTitle.Text = title;
                webBrowser.Navigate(new Uri(url));

            private void buttonClose_Click(object sender, EventArgs e)


    Here is my form being called:

                private void buttonMap_Click(object sender, EventArgs e)
                    using (FormWebBrowser frm = new FormWebBrowser("Test Map", "http://www.aggiebus.com/M/Route.aspx?RouteID=1"))

    Tuesday, October 12, 2010 3:04 AM
  • Hi,

    I have gone through your source, you are directly intializing the map to your form. Can you try that intializing to div tag. Here you can adjust the width and height of the map

    <body style="margin:0px; padding:0px;" onload="initialize()">
      <div id="map_canvas" style="width: 100%; height: 100%; border:1px solid black;"></div>

    It looks Mobile web application query, So Also try with http://forums.asp.net.



    Tuesday, October 12, 2010 4:29 AM
  • Hi,

    I noticed the same query here:


    Please follow only one thread.



    Tuesday, October 12, 2010 5:22 AM
  • Sorry, I wasn't sure if this was an issue with IE, or the WebBrowser control, or both.
    Tuesday, October 12, 2010 5:34 PM
  • I have modified the code as suggested, and I still have the same problem.  If I open up Internet Explorer on my mobile phone, and go to the website listed, the image does not fully load.  If you click anywhere on the page (or on the menu), it suddenly shows the whole picture (it doesn't refresh the page, it just refreshes the image), but if you don't click on the page the image will still only be partially loaded.


    I am not sure if this is a problem with ASP.NET or not.  I will try creating a blank HTML page, and see if that has the same issue.

    Tuesday, October 12, 2010 8:40 PM
  • The same applies with a static page, that is not an ASP.NET (aspx) page.




    Tuesday, October 12, 2010 8:47 PM
  • Hi,

    Pocket IE has some modes: desktop, Fit to screen, one column. I suggest you switch different mode to test the result. Also check whether there is scrollbar in IE.


    Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, October 14, 2010 8:43 AM