Get the screen's working area in C#

The working area is the part of the screen that an application can normally occupy. This area may be in different parts of the screen depending on where the task bar's sized and location.

The Screen.PrimaryScreen.WorkingArea property gives the primary screen's working area. This example uses the following code to make its form fill the working area.

this.Bounds = Screen.PrimaryScreen.WorkingArea;

  

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.