I have a large application developed in .Net Compact Framework 1.0, developed over the past 9 years with a lot of forms and custom controls. The application is designed for screens 240x320. It scales well to a 480x640 screen when compiled with Compact.Net 1.0 and Visual Studio 2003.
I upgraded the application to .NET 2.0 using the default upgrade wizard in Visual Studio 2008. The application uses full screen and all controls are laid out as designed when using a device with a resolution of 240x320. But when using a device with a resolution of 480x640, the application uses only the upper left 25% of the screen.
I tried to use the code: AutoScaleDimensions = new SizeF (96.96); AutoScaleMode = AutoScaleMode.Dpi;
It works with the form, but does not work with dynamic controls (standard / custom) that fit into the form.
Is there a way to force an application to use scaling similar to what it did when executed with .Net 1.0 without using the AutoScaleDimensions / AutoScaleMode properties.
Thank.
source
share