Screen size

  • Thread starter Thread starter Neelima
  • Start date Start date
N

Neelima

Hi All,

I have developed a pocket pc application that works well with a 240 X
320 screen size.

One of the devices we have to support is a HP PPC Phone (6515) which
has a screen size of 240 X 240.

I am setting the bounds of the form using the
Screen.PrimaryScreen.Bounds property.
There is no change in the form size. It is still 240 X 320.

Is there any other property that I need to set?

I am using CF2.0

TIA
Neelima
 
If you don't set the Form's Size at all it should be sized just right,
e.g.:

using System;
using System.Windows.Forms;

class ClientSize {
static void Main () {
Form f = new Form();
f.MinimizeBox = false;
Label l = new Label();
l.Text = String.Format("w={0}, h={1}", f.ClientSize.Width,
f.ClientSize.Height);
f.Controls.Add(l);
Application.Run(f);
}
}

PS: Not tested on CF 2.0
 
Setting the form size or bounds to Primaryscreen's size or bounds is
not working.
Does any body know how to get this working?

Thanks
Neelima
 
Back
Top