locked
How can i configure mobile application forms on different resolution? RRS feed

  • Question

  • 1. QVGA (240 x 320) is working fine, emulator DPI is '96'

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

    2. VGA (480 x 640) is working fine see blow image everything is stretch: emulator DPI is '192'

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

    

    3. WVGA (480 x 800) is not working fine see blow image nothing is stretch: emulator DPI is '96'

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

    Please help me what should i do? a single block of code can work with any resolution or any DPI?

    Wednesday, March 28, 2012 9:35 AM

All replies