PC Review

Thread Tools Rate Thread

component autoresize on a vga mobile 5

Posts: n/a
      25th Jan 2008
I'm porting a htc tytn application on a htc x7500 (mobile 5). The
difference that makes the application to run badly is the screen. The
x7500 has a vga screen and it seems that it tries to resize
automatically all the components and all the images. The image in a
picturebox is resized if loaded changing the image property compile
time, and it's not resized if I load it runtime from a file. Does
anybody know why?

The code I use to load an image is:
Bitmap b = new Bitmap(imagefile); ;
Image imm = Image.FromHbitmap(b.GetHbitmap());

And how could I avoid the automatical resize of the panels and the
textBox? Is it related to the font size?
I would need to manage explicitly this resize or, better, to avoid it
at all, at least for my application.

Thank you very much for any hint.
Reply With Quote
Posts: n/a
      29th Jan 2008
Ok, I've seen the Form.AutoScaleMode property. :-)
In order to solve my problem I had to set AutoScaleMode to None and
resize some components explicitly.

To get fonts metrics I found this message useful:
Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VGA Active/Powered Splitters (degradation?) (component to vga split too).. markm75 Video Cards 12 12th Jan 2007 03:46 PM
howto autoresize dropdownlist when the text of one item is too long? YaKs Microsoft ASP .NET 0 2nd Jan 2006 02:00 PM
AutoResize Columns to Content's Width kwarnke Microsoft Dot NET Framework Forms 1 3rd May 2004 07:05 PM
Autoresize Popup Window =?Utf-8?B?Q2FybG9zIFZsYWR5bWly?= Microsoft Frontpage 2 9th Feb 2004 10:06 PM
Autoresize Listbox with Form Mihai Marinescu Microsoft C# .NET 6 6th Nov 2003 12:28 AM




All times are GMT +1. The time now is 05:53 AM.