Form-Size ...

P

Peter T

Hello NG,

i have a Dell Axim X51v (Windows Mobile 5) with a VGA-Display (640x480px).
No i started to write a small Application for Compact Framework. My
Form-Size is 640x480px but i see only the half of the Form. To test it i set
a Button on that Form with the following Code:

MessageBox.Show(Screen.PrimaryScreen.Bounds.Size.Height.ToString() +
"-" + Screen.PrimaryScreen.Bounds.Size.Width.ToString());

Then i see a Messagebox saying i have a Screen with Size 320x240! What is
wrong? May i have to set some Properties?????



Please Help
 
C

Cocotteseb

I assume you are using CF 2.0, right?
If yes, please check if you have put the AutoscaleMode of the form to
"Dpi"

Edit : I run you code on my sample and it indicates me the right
dimensions in vga (640*480). So please tell us your CF version.

Thanks
 
P

Peter T

I am using newest Download on Compact Framework 2.0 (SP1).
Form-Properties:

WindowState: Maximized
AutoScaleMode: DPI
FormFactor: WebPad (no other option available)

I did new SmartDevice\Windows CE 5.0\Device Application - Template. When i
am running in Debugger (Emulator) all is fine (640x480), when i copy the
Application to my Dell Axim it says 320x240.


I don't understand what i am doing wrong.
 
C

Cocotteseb

Peter said:
I am using newest Download on Compact Framework 2.0 (SP1).
Form-Properties:

WindowState: Maximized
AutoScaleMode: DPI
FormFactor: WebPad (no other option available)

I did new SmartDevice\Windows CE 5.0\Device Application - Template. When i
am running in Debugger (Emulator) all is fine (640x480), when i copy the
Application to my Dell Axim it says 320x240.


I don't understand what i am doing wrong.

Well as you target an Axiim Dell X51v please download and install the
window mobile 2005 SDK and create a smart device project targeting to
it.
Also you can check me.autoscaledimensions. (as single in vb.net) it is
96.0 when qvga and 192.0 for vga
Hope this helps
Let me know how it is ! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top