Click here to Skip to main content
       

Hardware & Devices

 
GeneralRe: XP always runs check disk on start up - no errors found. PinmemberVaclav_Sal11-Sep-12 6:01 
AnswerRe: XP always runs check disk on start up - no errors found. PinmemberKenneth Haugland11-Sep-12 6:09 
GeneralRe: XP always runs check disk on start up - no errors found. PinmemberVaclav_Sal11-Sep-12 12:03 
GeneralRe: XP always runs check disk on start up - no errors found. Pinmemberjeeteshsrivastava14-Sep-12 23:53 
GeneralRe: XP always runs check disk on start up - no errors found. Pinmemberjeeteshsrivastava14-Sep-12 23:53 
RantAccess HID token in a Bootloader [modified] PinmemberA_Fa3-Sep-12 21:23 
GeneralRe: Access HID token in a Bootloader PinmvpDave Kreskowiak4-Sep-12 2:14 
QuestionHow to get the properties of more than one display monitor attached to my computer PinmemberNathaniel Lim29-Aug-12 10:10 
Hello everyone,

I posted this question in the C# forum, but felt that those on this forum might be able to help as well.
 
I have a project that requires me to gather inventory data for my computer. I am having problems trying to get the properties of the monitors attached to my computer.

I have one computer that can potentially use a max of 4 monitors, wherein I have a primary monitor and 3 other potential monitors which act as extension screens when I move my mouse to them ( depending on whether they are connected or not ).

I need to grab the following information from each monitor :

DeviceId,
Name,
Horizontal and Vertical resolution,
Whether or not the monitor is the primary one ( a true or false value will suffice ).

I tried using the WMI, Win32_DesktopMonitor class but it is only giving me ONE monitor's results ( the primary monitor ).

I then tried using the Win32_PnPEntity class.
This works, and gives me the number of monitors attached to my computer, but it only gives me Name and DeviceId ( no horizontal and vertical resolution information in this class ).

I then tried the Screen class (using the System.Windows.Forms.Screen), however the result is erratic. In one environment, it gives me the right number of monitors attached to my computer, in others, it does not.

Does anyone know of a Class provided by .NET 4 that will help me gather the information I need?

I am using .NET Framework 4 and building my application as a Console Application.

Any suggestions and advise will be highly appreciated.
AnswerRe: How to get the properties of more than one display monitor attached to my computer PinmvpDave Kreskowiak29-Aug-12 13:06 
QuestionA couple of questions about graphics cards PinmemberLloyd Atkinson27-Aug-12 8:04 
AnswerRe: A couple of questions about graphics cards Pinmember Michael Martin 27-Aug-12 16:07 
AnswerRe: A couple of questions about graphics cards PinmemberA NasseR8-Nov-12 3:17 
QuestionIntel I7 2670QM processor PinmemberForNow19-Aug-12 15:48 
AnswerRe: Intel I7 2670QM processor PinmemberRichard Andrew x6419-Aug-12 17:13 
GeneralFile folder tables of Windows 7: Home Premium PinmemberBrandon T. H.4-Aug-12 17:08 
GeneralRe: File folder tables of Windows 7: Home Premium PinmvpDave Kreskowiak4-Aug-12 17:27 
AnswerRe: File folder tables of Windows 7: Home Premium PinmemberSoMad4-Aug-12 17:41 
QuestionInstalling a filter driver PinmemberMarkBrock1-Aug-12 2:09 
GeneralOverwrite file and delete file/folder driver PinmemberBrandon T. H.25-Jul-12 22:33 
GeneralRe: Overwrite file and delete file/folder driver PinmvpRichard MacCutchan26-Jul-12 0:18 
GeneralRe: Overwrite file and delete file/folder driver PinmemberBrandon T. H.26-Jul-12 14:08 
GeneralBroken Ethernet adapter help PinmemberBrandon T. H.24-Jul-12 14:09 
GeneralRe: Broken Ethernet adapter help PinmemberRichard Andrew x6424-Jul-12 15:02 
GeneralRe: Broken Ethernet adapter help PinmemberBrandon T. H.4-Aug-12 17:21 
GeneralRe: Broken Ethernet adapter help PinmvpDave Kreskowiak24-Jul-12 18:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid