简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM