Screen resolution

  • Thread starter Thread starter A.Rocha
  • Start date Start date
A

A.Rocha

Hi,

Its possible run the same application on Pockect PC with a 320x240 and
640x480???

How i make app autosize?
 
Hi,

Its possible run the same application on Pockect PC with a 320x240 and
640x480???

How i make app autosize?

Hi,

If you're using .NET CF 2.0 or 3.5 then the designer probably
autogenerated statements setting the AutoScaleDimensions and
AutoScaleMode properties of your forms / controls - this is usually
enough for all the standard forms and user controls.

If you do any owner-drawing or custom controls, then you will probably
need to adjust the size and position of everything you draw according
to a scale factor that you can calculate basing on the Graphics.DpiX,
i.e. scaleFactor = graphics.DpiX / 96.0f, where 96 is the 320x240 dpi
resolution.

Hope that helps,

Micha³
 
Back
Top