I have written a Windows CE application in VB.Net (Visual Studio 2008), but am having a huge problem getting the forms to scale to fit on devices with different size and resolution screens. I have spent days reading articles on the web, but every time I think I understand "auto-scale" and "dock" and "anchor", it fails to work when I deploy the application to another device.
I've also run into a really strange issue, where in the "form load" event the form's height and width (me.height and me.width) show as 640x480, but once the form is painted they change to 480x640. There's no issue with screen orientation, and I've discovered that the screen bounds are always correct, but me.height and me.width are the wrong way around. I suspect this is potentially adding to my problems scaling the form, although am not sure if it's the direct cause or not!
Could anybody upload a really simple VB application, with a single control (e.g. a button), which auto-scales to whatever size and resolution screen Windows CE (or derivative such as Windows Mobile) is being used. If I could see some simple VB code (rather than reading lengthy articles and trying to unpick C# code that I don't understand!) I think it would really help me