Pocket PC Screen Size

I've developed a pocket pc application which works fine on emulators, but when running on an o2 xda exec (larger pixel screen size) the screen sizes all halve, how can i get the program to run on all pocket pc's no matter what size of screen

Answer this question

Pocket PC Screen Size

  • DCWCore

    before you change anything else, try setting the AutoScaleMode of each form to dpi, this might do it all for ya
  • Surya Suluh

    So you can do a check on the screen size, and then change the locations depending on the size.
    lots of extra coding but a way round.

    Shame it can't auto-adjust like it did in .net v1.


  • Leonard Lee

    As far as I know, you must test the application on each device, and move UI elements around accordingly.

    However, you can minimize your work by docking/anchoring UI controls rather than setting absolute positions.


  • et381

    Ok, i've managed to get it to work by using:

    this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);

    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;

    But when i use it on a page with tabs, it doesn't seem to work on all the tabs.

    any ideas


  • SSRS Jon

    You can get screen's size with

    System.Windows.Forms.Screen.PrimaryScreen.Bounds

    or

    System.Windows.Forms.Screen.PrimaryScreen.WorkingArea

    and than optimize your UI



  • Pocket PC Screen Size