Get Device size Width and Height

G

Guest

Hi All

I am using Visual stadio 2005 and NETCF2.0,

and I want to know the difference device screen size,
something like:

int width = Screen.Width;
int height = Screen.Height;

How to get those information?

Thanks in advanced!
 
G

Guest

System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.

Simon.
 
A

Arun

Hi All

I am using Visual stadio 2005 and NETCF2.0,

and I want to know the difference device screen size,
something like:

int width = Screen.Width;
int height = Screen.Height;

How to get those information?

Thanks in advanced!

System.Drawing.Rectangle rect =
Screen.PrimaryScreen.WorkingArea;

Hope this helps,
Cheers,
Arun
www.innasite.com
 

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