get screen size
Published: 12. January 2009 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: GDI, Windows » Hardware
Tags: C# GDI Hardware Windows Winforms
Import namespace
using System.Windows.Forms;
Code
int height = Screen.PrimaryScreen.Bounds.Height; int width = Screen.PrimaryScreen.Bounds.Width;
| Send us feedback about this snippet » |





