Screen size

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
 
T

tamberg

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
 
N

Neelima

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top