Re: Form Size and Screen.Bounds

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




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


.



Relevant Pages

  • Update Emulator
    ... When I open the emulator for Pocket PC 2003 in Visual Studio and check ... it reports 4.20.1081. ... I don't know what version is in the emulator that downloads with the SDK ...
    (microsoft.public.pocketpc.developer)
  • Re: SDF File
    ... > When I deploy my application to the pocket pc emulator it overwrites the ... > deployment of the SDF file when it is attached to the VS2005 project? ...
    (microsoft.public.dotnet.framework.compactframework)
  • SDF File
    ... When I deploy my application to the pocket pc emulator it overwrites the SDF ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Demystified: Why doesnt VPC match the reported processor speed?
    ... >E.g. QEMU always reports 33MHz, with VPC that seems to depend on certain ... Synthetic benchmarks and timing: ... >frontend to the free QEMU emulator, I used Comptest with it on my 2GHz ...
    (microsoft.public.mac.virtualpc)
  • Demystified: Why doesnt VPC match the reported processor speed?
    ... E.g. QEMU always reports 33MHz, with VPC that seems to depend on certain ... The first problem here is that such benchmarks are often called ... problem is that the timing of an emulator will never be as exact as that ... to all the remaining hardware. ...
    (microsoft.public.mac.virtualpc)