Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Controls shrink on mobie phone

0 views
Skip to first unread message

Ralf

unread,
Nov 4, 2009, 5:53:01 AM11/4/09
to
Hi,
I'm trying to create a small application for my mobile phone "LG KS-20".
The good thing: it works :-)
The bad thing: The controls seem to shrink on the device. For example, on
design time, I have a ComboBox-Control with size 100 x 30 pixels, which can
be viewed in Form1.Designer.cs:

this.comboBox2.Size = new System.Drawing.Size(100, 30);

I placed a label on the screen and a menu button event which fills the label
with the values of ComboBox2.Size.Width and ComboBox2.Size.Height.
Result: my ComboBox, being 100 Pixels in width and 30 in height on
designtime, shrinks to width=73 and height=20 when I run the program on the
device.
And so do most of the controls, e.g. the Label as well - with the result
that a text entered on design time, will now be cropped :-(

Can somebody tell me how to avoid this?

Thanks in Advance.
Ralf

0 new messages