locked
VS 2008 mobile device target change RRS feed

  • Question

  • I have the following configuration and problem:
    VS 2008 Professional running on Win7
    After loading an application (C# open source) written for 'Pocket PC 2003' then changing the target platform to 'Windows Mobile 6 Professional SDK' results in correct looking screens within VS 2008.
    After Building and Depoying the application in the correct working program all screens look somewhat scrambled.
    It looks like that all graphics is squeezed in the left top corner of the screen and occupying only 1/4 op the available pixels.
    What do I miss?
    Thursday, February 25, 2010 5:14 PM

Answers

  • Hi,

    Are you deploying to a VGA device or emulator?

    If so you may need to review the AutoScaleDimensions and AutoScaleMode of your form, these allow for the resizing of controls on your form to be inline with the higher resolution devices. These settings would normally, by default, be as follows :-

                this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;


    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Thursday, February 25, 2010 7:13 PM

All replies

  • Hi,

    Are you deploying to a VGA device or emulator?

    If so you may need to review the AutoScaleDimensions and AutoScaleMode of your form, these allow for the resizing of controls on your form to be inline with the higher resolution devices. These settings would normally, by default, be as follows :-

                this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;


    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    Thursday, February 25, 2010 7:13 PM
  • Hello Paul,
    Thank you for thinking with me.
    I am deploying to a Mobile 6 device (IPAQ 214).
    When I create a similar screen in a simple test application then the screen is OK after the same deploy sequence of this new written program is done.
    Regards,
    Roel
    Thursday, February 25, 2010 7:55 PM