سؤال

I am wondering if there is a way in C# to determine if a running applications window is using a single monitor or spanning over multiple monitors?

I know I can get monitor count for available monitors but not sure how to determine if a current program is spanning over multiple monitors. Any suggestions?

هل كانت مفيدة؟

المحلول

Use Screen.AllScreens to find where your users' screens are, and do some math based on the window position, perhaps using Rectangle.Intersects.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top