R
rpatel4
I've got a C#, Visual Studio 2005 application targetted to the Windows
Mobile 5.0 Pocket PC Device.
When the app is loaded on devices with different orientation, It gives
me the correct orientation when I examine the screen's size (either
320x240 or 240x320).
However, when I load this on a VGA device, the app remains at QVGA
resolution (with pixel doubling occuring).
I've tried to search and haven't found an answer. I want my app to be
aware of the VGA resolution so I can handle things differently
In VS2003, it seems that you run a res2exe after the build.
Based on the reading I've found, VS2005 has built in support to set the
app to resolution aware, but I can't seem to be able to do it. I've
tried changing a Form's target device in the designer to Pocket PC VGA,
and the designer is now behaving well, but during runtime, I'm only
getting 320x240. And I'm not finding any setting in the project or
solution's properties.
So the question is, how do I modify my solution/project/form so that at
runtime, when I query a form's size, or look at
System.Windows.Forms.Screen.PrimaryScreen.Bounds, or paint items, it
uses the actual VGA (or QVGA) resolution, and not a pixel doubling from
QVGA to VGA?
Mobile 5.0 Pocket PC Device.
When the app is loaded on devices with different orientation, It gives
me the correct orientation when I examine the screen's size (either
320x240 or 240x320).
However, when I load this on a VGA device, the app remains at QVGA
resolution (with pixel doubling occuring).
I've tried to search and haven't found an answer. I want my app to be
aware of the VGA resolution so I can handle things differently
In VS2003, it seems that you run a res2exe after the build.
Based on the reading I've found, VS2005 has built in support to set the
app to resolution aware, but I can't seem to be able to do it. I've
tried changing a Form's target device in the designer to Pocket PC VGA,
and the designer is now behaving well, but during runtime, I'm only
getting 320x240. And I'm not finding any setting in the project or
solution's properties.
So the question is, how do I modify my solution/project/form so that at
runtime, when I query a form's size, or look at
System.Windows.Forms.Screen.PrimaryScreen.Bounds, or paint items, it
uses the actual VGA (or QVGA) resolution, and not a pixel doubling from
QVGA to VGA?