Determine screen resolution

J

Jaco

Hi,

How can I determine in C#-code the screen resolution. If
it is an 800 by 600 or an 1024 by 768 I have to show
other forms (frames) on the screen (dimension of the
forms depends on the resolution).

Thanks,
Jaco
 
J

John Bowman

Jaco,

Trying looking into the Screen object doc's.. I did it something like
this...

Screen Scr = Screen.FromControl(this);
int ScrHeight = Scr.WorkingArea.Height;
int ScrWidth = Scr.WorkingArea.Width;
 

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