Re: Form Size and Screen.Bounds
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 3 Jan 2007 15:08:47 -0700
You probably want to modify the output EXE *as part of the build process*,
so it's always done. I'm afraid that you've gotten everything out of my
head on this topic...I don't target Pocket PC devices.
Paul T.
<dadawan@xxxxxxxxx> wrote in message
news:1167861339.926447.187960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
dadawan@xxxxxxxxx wrote:
However, my app still shows up magnified by two, and the
Screen.Bounds still reports 320x240.
I notice that when I hit Start Debugging to run on the emulator it
overwrites my debug.exe so no doubt it is overwriting any change made
by res2exe
-Kevin
Paul G. Tobey [eMVP] wrote:
As you might expect, even if the screen is VGA, the device does things
so
that applications designed for ordinary Pocket PC will look the same on
the
VGA device. Unless you are marked as knowing about resolutions, you
will
get what appears to be a 320x240 display where the pixels are doubled
automatically underneath you.
Here's a thread that I found in a couple of seconds that talks about
some
things:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/d95fdb3e23674b7/aa4773d7d3ce7824?lnk=gst&q=resolution+aware+mark&rnum=3&hl=en#aa4773d7d3ce7824
Paul T.
<dadawan@xxxxxxxxx> wrote in message
news:1167842686.993940.215360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using VS2005 to create C# apps using the compact framework.
My problem is that I make a form that is 640x480 pixels, but...
When I run it in the Pocket PC VGA emulator, the form is way too big
and shows up with scroll bars. If I display Screen.Bounds is says
the
screen is 320x200. That is incorrect.
The same thing happens when I run it on a Dell Axiam pocket pc.
Form is stretched, wrong screen size reported.
I have played with the Font Size and also the AutoScaleMode
property,
and nothing seems to make a difference.
When I created the project, I chose Visual C#.SmartDevice.Windows
CE
5.0 as the template. Is the 320x200 a result of that choice? If so
what can I do to change the screen size to 640x480 to match the
emulator?
Thanks for any help with this.
-Kevin
.
- Follow-Ups:
- Re: Form Size and Screen.Bounds
- From: Kevin S.
- Re: Form Size and Screen.Bounds
- From: Kevin S.
- Re: Form Size and Screen.Bounds
- References:
- Form Size and Screen.Bounds
- From: dadawan@xxxxxxxxx
- Re: Form Size and Screen.Bounds
- From: Paul G. Tobey [eMVP]
- Re: Form Size and Screen.Bounds
- From: dadawan@xxxxxxxxx
- Re: Form Size and Screen.Bounds
- From: dadawan@xxxxxxxxx
- Form Size and Screen.Bounds
- Prev by Date: Re: WiFi Control in Windows Mobile 5.0 using VB.NET in Visual Studio 2
- Next by Date: packets disappear into ether
- Previous by thread: Re: Form Size and Screen.Bounds
- Next by thread: Re: Form Size and Screen.Bounds
- Index(es):
Relevant Pages
|