Display Problem with webBrowser in Visual C#
I am writing an application that creates and displays an html page in a webBrowser in a form using Visual C#. The page contains a table that is specified to be 440 pixels wide. When I display the page on my normal ROM (MightyROM 2/10), the page displays correctly. The entire table is displayed. However, when I run the same application on the stock Sprint ROM (with .net CF 3.5 installed), I get only half of the table displayed. To see the entire table, I have to scroll to the right. I lowered the table width to half of the screen resolution (240 pixels) and the entire table is displayed.
It seems to me, that a table with a width of 440 pixels should show the entire width if the screen is 480x800?
Does anyone have any ideas why the apparent screen resolution of the webBrowser control would be so different between the two ROMS? It is as if the stock ROM is not allowing the parent form to set the resolution correctly.
This is being built with Visual Studio 2008 (C#), .net CF 3.5. I am specifically attempting to build this for an HTC TP2. I may attempt to make it more generic later, but for now, I am only targeting a device with a resolution of 480x800 pixels.
|