Get the Current Screen Size for WinForms C#

We’re gonna use the .net Screen class here. There are two aspects here.

Full Screen Size

int screenWidth = Screen.PrimaryScreen.Bounds.Width;
int screenHeight = Screen.PrimaryScreen.Bounds.Height;

Available Screen Size

int screenWidth = Screen.PrimaryScreen.WorkingArea.Width;
int screenHeight = Screen.PrimaryScreen.WorkingArea.Height; 
Advertisements

One thought on “Get the Current Screen Size for WinForms C#

  1. lee woo October 21, 2015 / 05:59

    This comment has been removed by a blog administrator.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s