Software Development Network>> Smart Devicet>> Pocket PC Screen Size
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.
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.
Ok, i've managed to get it to work by using:
this
But when i use it on a page with tabs, it doesn't seem to work on all the tabs.
any ideas
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
DCWCore
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