Determine screen resolution

  • Thread starter Thread starter Jaco
  • Start date Start date
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
 
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;
 
Back
Top