Tag Archives: screen

Find a form’s screen in C#

Find a form’s screen can be an issue if the user is using more than one monitor. When this program starts, it uses the following code to get the Screen object that holds the form and display its device name, … Continue reading

Posted in forms | Tagged , , , , , , , , | Leave a comment

Position a form so it does not stick off the edge of the screen in C#

In the picture, the main program (on the bottom) initially positioned the top form so it was hanging off the right and bottom edges of the screen. The program’s code moved the form so it fit in the screen’s lower … Continue reading

Posted in forms, user interface | Tagged , , , , , , , , | Leave a comment

Position a form in the screen’s lower right corner in C#

The Screen.PrimaryScreen.WorkingArea property gives the size of the primary screen’s working area. (For more information, see Get the screen’s working area in C#). The following code subtracts the form’s width and height plus a margin from the working area’s Right … Continue reading

Posted in system | Tagged , , , , , , , , | 2 Comments

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 the task bar’s size and location. For example, if the task bar is … Continue reading

Posted in system | Tagged , , , , , , , , | 1 Comment