Re: Form Size and Screen.Bounds



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




.



Relevant Pages

  • Re: Supercard
    ... particularly easy to try in an emulator, but it could also be used ... with a hardware VGA adapter. ... There would only be as many horizontal pixels as there are on an ... even on a modern display. ...
    (comp.sys.apple2)
  • Re: Form Size and Screen.Bounds
    ... My problem is that I make a form that is 640x480 pixels, ... When I run it in the Pocket PC VGA emulator, the form is way too big ... If I display Screen.Bounds is says the ...
    (microsoft.public.dotnet.framework.compactframework)
  • TabControl visual problem on Pocket PC 2003 CF2.0
    ... TabControl is separated from MainMenu with thick line(2 pixels). ... Create new device application for Pocket PC 2003 CF2.0, ... This problem disappears on WM 5.0 Pocket PC emulator. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: VS2005 and Device Emulator
    ... to "Pocket PC 2003 Second Edition Emulator". ... changing this CF project to target "Windows Mobile 5.0 Pocket PC Device", ... structures had "doubled" in my Vista 64-bit environment. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: query on pocket pc emulator and device
    ... > i am developing my application on pocket pc device but i was using emulator ... If the symptom does show with a debug ... finding nasty problems such as bad pointers and array indeces. ...
    (microsoft.public.pocketpc.developer)