Saturday, August 28, 2010

Detect Number of Connected Monitors

In the .Net framework all to the computer connected screens are saved in the array Screen.AllScreens.
By the property Lenght this can of course be read-out, so in C# the following command determines the number of connected monitors:

int NrOfScreens = Screen.AllScreens.Length;

No comments:

Post a Comment