Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dual screen programming issue

I am using VSTS 2008 + C#. Is there any way to get the informaiton like, whether we are currently in dual monitor mode, how much is the current resolution of each desktop?

BTW: there are two modes of dual screen, duplicate screen or extended screen. I need a solution as well to distinguish between the different modes.

thanks in advance, George

like image 883
George2 Avatar asked Mar 02 '26 03:03

George2


1 Answers

System.Windows.Forms.Screen.AllScreens

Gets an array of all displays on the system.

The property Primary

Gets a value indicating whether a particular display is the primary device.

And the Bounds property may be the solution for the rest.

System.Windows.Forms.SystemInformation.VirtualScreen Property

Might be usefull for you, to determine if the primary monitor is cloned or extended.

VirtualScreen resolution higher than the ones of primary -> extended...

VirtualScreen resolution = the ones of primary -> cloned...

like image 58
Xn0vv3r Avatar answered Mar 03 '26 15:03

Xn0vv3r



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!