Groups | Blog | Home
all groups > c# > october 2003 >

c# : monitor resolution


RickN
10/20/2003 11:47:28 PM
What's the best way to determine the resolution of the
client's monitor, eg. 640x480, 800x600?

Thanks,
RickN

Ryan LaNeve
10/21/2003 1:06:15 AM
[quoted text, click to view]

System.Windows.Forms.Screen.PrimaryScreen.Bounds returns a Rectangle object
with the top/left and width/height of the primary screen.

Good luck.
--
Ryan LaNeve, MCSD.NET
http://weblogs.asp.net/rlaneve

Mattias Sjögren
10/21/2003 7:11:24 AM

[quoted text, click to view]

The Screen.Bounds property. Keep in mind that more and more people are
using multiple monitors these days.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
AddThis Social Bookmark Button