• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

WM Screen Size

I´m developing an app for use on HTC HD2 cell phone with WM 6.5, VS 2008 and C#.

The phone resolution is 480 x 588 pixels and the Visual Studio Forms is 240 x 268.

If I change the forms dimension the result is not the expected because the form size going to big.

Is there a way to I achieve the correct resolution for this phone in design time on VS 2008 ?

If I publish this app to the HTC device the objects aren´t displayed well. And If I change the size of the forms manually in VS 2008 I can display the content in right way on the phone.

But I think this aproach isn´t the corret way change the forms size based on the phone size. Is there a way to do this ?

JrT


 VS 2008 Forms size with the HTC HD2 Resolution
0
jrthurler
Asked:
jrthurler
  • 2
1 Solution
 
Mikal613Commented:
0
 
Mikal613Commented:
You need to manage the size and position of your forms in code for all the resolutions.
0
 
hjgodeCommented:
Hello

If you have installed WM6.5 SDK and you set Windows Mobile 6.5 as target platform in your visual studio 2008 project, you can set the form factor in the form properties of your dialogs.
There you have to set the form factor size to 480x588.

But it is always good to not rely on a specific screen size for mobile development and use a layout manager to layout your form. I have published an article on layout managers for compact framework on my blog at http://www.hjgode.de/wp/2010/07/17/mobile-development-using-layout-managers/ and a copy of an external site at http://www.hjgode.de/wp/all-posts-list/layout-manager-in-csharp-copy/

josef
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now