Brad
Brad

Reputation: 21160

In a C# winform how do identify what monitor the app is displayed on

Duplicate of How do I find what screen the application is running on in C#

In a C# winform how do identify what monitor the app is displayed on in a three monitor setup.

Upvotes: 4

Views: 1355

Answers (1)

Konstantin Tarkus
Konstantin Tarkus

Reputation: 38378

System.Windows.Forms.Screen.FromControl()

Retrieves a Screen for the display that contains the largest portion of the specified control.

And also this Property might be helpfull:

System.Windows.Forms.Screen.AllScreens

Gets an array of all displays on the system.

Upvotes: 6

Related Questions