PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > Windows Mobile Development
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-28-2010, 01:02 PM
mtnbiker's Avatar
Lurker
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
 
Join Date: Nov 2008
Posts: 14
Reputation: 5
mtnbiker is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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.
 

  PPCGeeks > Windows Mobile > Windows Mobile Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:00 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com