I am developing a project on i-mate PDA2K EVDO running on Windows Mobile 2003 Second Edition Version 4.21.1088. The project is built on Visual Studio 2005 C#.Net CF 2.0.
It renders very well on i-mate PDA2K EVDO. But when I am trying to deploy it on an i-mate JasJar which runs on Windows Mobile 5.0 Version 5.1.1700, we are facing problem with way the form controls are aligned.
I have compiled the project for the platform Pocket PC 2003.
- Is this a problem with Windows Version If so, how to solve this
- Also is there a way to create this application compatible to both Windows Mobile 2003 and Windows Mobile 5.0
Please help.
Regards,
Suman Ghosh

PPC Windows Version
Zhao_Gil
Can you also take a look at this topic
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=939610&SiteID=1
I need some help badly since I am new to PPC application development. Thanks in advance. :)
Regards,
Suman Ghosh
WebSigMan
You need to code in such a way that your application is screen, orientation & DPI aware. Go thru the articles for tips http://msdn2.microsoft.com/en-us/library/ms839354.aspx and http://msdn2.microsoft.com/en-us/library/ms838174.aspx
Once you do that - your application will run smoothly on multiple platforms.
Manav
Redmanmc
Its not actually horizontal or vertical alignment problem, but the height and margins of the controls like textbox and labels are changing in JasJar which affects in overlapping one control over the other. In JasJar the height and margins have reduced. Horizontal and Vertical alignment is not actually affected.
Any idea
Regards,
Suman Ghosh
shax
Your problem is with the DPI of the two devices. iMat PDA2K has resolution of 240x320 whereas iMat Jasjar has screen resolution of 640x480. Checkout this resource on Microsoft.com http://go.microsoft.com/ linkid=5031570
Manav
William Pedersen
Thanx a ton for the resources.
I have checked all my forms and noticed some had AutoScaleMode property set to Inherit. So I changed them to Dpi and seems like most of them works properly, except a few pages where I have user-defined controls. At low resolution, some buttons need to be a bit wider, else the text is not fully displayed.
Do you have any idea how to detect the font width of the current font in use in current resolution Then I could have resized the buttons in runtime.
Regards,
Suman Ghosh
[Massoftind]
Jassim Rahma
You can System.Drawing.Font class to find out the size & other properties of the font. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemDrawingFontClassTopic.asp
Manav