M
MEK_DK
Guest
When users setup displays in Windows a number is assigned to each display and the user can show these numbers by clicking identify. When an application wants to launch a new window I want to show these numbers to the user, to make it easy to select where the window must go. Thus I would like to know what the display number of each monitor is.
I have tried different approaches, using the System.Windows.Forms.Screen.AllScreens which is normally used in C#/.Net to get info about monitor, but it does not contain the number. I also tried using WMI with a series of different "select" statements and a lot of different monitor info can be retrieved, but not the number.
So how do you get the display numbers from Windows or is that impossible?
The numbers I am looking for are the ones shown in this screenshot from Windows 10 (in this case 2 is the primary display):
Continue reading...
I have tried different approaches, using the System.Windows.Forms.Screen.AllScreens which is normally used in C#/.Net to get info about monitor, but it does not contain the number. I also tried using WMI with a series of different "select" statements and a lot of different monitor info can be retrieved, but not the number.
So how do you get the display numbers from Windows or is that impossible?
The numbers I am looking for are the ones shown in this screenshot from Windows 10 (in this case 2 is the primary display):
Continue reading...