Click here to Skip to main content
12,511,553 members (47,743 online)

Hardware & Devices

 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_Sal11-Sep-12 6:01
memberVaclav_Sal11-Sep-12 6:01 
AnswerRe: XP always runs check disk on start up - no errors found. Pin
Kenneth Haugland11-Sep-12 6:09
memberKenneth Haugland11-Sep-12 6:09 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_Sal11-Sep-12 12:03
memberVaclav_Sal11-Sep-12 12:03 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava14-Sep-12 23:53
memberjeeteshsrivastava14-Sep-12 23:53 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava14-Sep-12 23:53
memberjeeteshsrivastava14-Sep-12 23:53 
RantAccess HID token in a Bootloader Pin
A_Fa3-Sep-12 21:23
memberA_Fa3-Sep-12 21:23 
GeneralRe: Access HID token in a Bootloader Pin
Dave Kreskowiak4-Sep-12 2:14
mvpDave Kreskowiak4-Sep-12 2:14 
QuestionHow to get the properties of more than one display monitor attached to my computer Pin
Nathaniel Lim29-Aug-12 10:10
memberNathaniel 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 Pin
Dave Kreskowiak29-Aug-12 13:06
mvpDave Kreskowiak29-Aug-12 13:06 
QuestionA couple of questions about graphics cards Pin
Lloyd Atkinson27-Aug-12 8:04
memberLloyd Atkinson27-Aug-12 8:04 
AnswerRe: A couple of questions about graphics cards Pin
Michael Martin 27-Aug-12 16:07
member Michael Martin 27-Aug-12 16:07 
AnswerRe: A couple of questions about graphics cards Pin
A NasseR8-Nov-12 3:17
memberA NasseR8-Nov-12 3:17 
QuestionIntel I7 2670QM processor Pin
ForNow19-Aug-12 15:48
memberForNow19-Aug-12 15:48 
AnswerRe: Intel I7 2670QM processor Pin
Richard Andrew x6419-Aug-12 17:13
memberRichard Andrew x6419-Aug-12 17:13 
GeneralFile folder tables of Windows 7: Home Premium Pin
Brandon T. H.4-Aug-12 17:08
memberBrandon T. H.4-Aug-12 17:08 
GeneralRe: File folder tables of Windows 7: Home Premium Pin
Dave Kreskowiak4-Aug-12 17:27
mvpDave Kreskowiak4-Aug-12 17:27 
AnswerRe: File folder tables of Windows 7: Home Premium Pin
SoMad4-Aug-12 17:41
memberSoMad4-Aug-12 17:41 
QuestionInstalling a filter driver Pin
MarkBrock1-Aug-12 2:09
memberMarkBrock1-Aug-12 2:09 
GeneralOverwrite file and delete file/folder driver Pin
Brandon T. H.25-Jul-12 22:33
memberBrandon T. H.25-Jul-12 22:33 
GeneralRe: Overwrite file and delete file/folder driver Pin
Richard MacCutchan26-Jul-12 0:18
mvpRichard MacCutchan26-Jul-12 0:18 
GeneralRe: Overwrite file and delete file/folder driver Pin
Brandon T. H.26-Jul-12 14:08
memberBrandon T. H.26-Jul-12 14:08 
GeneralBroken Ethernet adapter help Pin
Brandon T. H.24-Jul-12 14:09
memberBrandon T. H.24-Jul-12 14:09 
GeneralRe: Broken Ethernet adapter help Pin
Richard Andrew x6424-Jul-12 15:02
memberRichard Andrew x6424-Jul-12 15:02 
GeneralRe: Broken Ethernet adapter help Pin
Brandon T. H.4-Aug-12 17:21
memberBrandon T. H.4-Aug-12 17:21 
GeneralRe: Broken Ethernet adapter help Pin
Dave Kreskowiak24-Jul-12 18:54
mvpDave Kreskowiak24-Jul-12 18:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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.160929.1 | Last Updated 19 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid