Click here to Skip to main content
15,886,067 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_11-Sep-12 6:01
Vaclav_11-Sep-12 6:01 
AnswerRe: XP always runs check disk on start up - no errors found. Pin
Kenneth Haugland11-Sep-12 6:09
mvaKenneth Haugland11-Sep-12 6:09 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_11-Sep-12 12:03
Vaclav_11-Sep-12 12:03 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava14-Sep-12 23:53
jeeteshsrivastava14-Sep-12 23:53 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava14-Sep-12 23:53
jeeteshsrivastava14-Sep-12 23:53 
RantAccess HID token in a Bootloader Pin
A_Fa3-Sep-12 21:23
A_Fa3-Sep-12 21:23 
GeneralRe: Access HID token in a Bootloader Pin
Dave Kreskowiak4-Sep-12 2:14
mveDave 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
Nathaniel 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
mveDave Kreskowiak29-Aug-12 13:06 
QuestionA couple of questions about graphics cards Pin
LloydA11127-Aug-12 8:04
LloydA11127-Aug-12 8:04 
AnswerRe: A couple of questions about graphics cards Pin
Michael Martin27-Aug-12 16:07
professionalMichael Martin27-Aug-12 16:07 
AnswerRe: A couple of questions about graphics cards Pin
A NasseR8-Nov-12 3:17
A NasseR8-Nov-12 3:17 
QuestionIntel I7 2670QM processor Pin
ForNow19-Aug-12 15:48
ForNow19-Aug-12 15:48 
AnswerRe: Intel I7 2670QM processor Pin
Richard Andrew x6419-Aug-12 17:13
professionalRichard Andrew x6419-Aug-12 17:13 
GeneralFile folder tables of Windows 7: Home Premium Pin
Brandon-X120004-Aug-12 17:08
Brandon-X120004-Aug-12 17:08 
GeneralRe: File folder tables of Windows 7: Home Premium Pin
Dave Kreskowiak4-Aug-12 17:27
mveDave Kreskowiak4-Aug-12 17:27 
AnswerRe: File folder tables of Windows 7: Home Premium Pin
SoMad4-Aug-12 17:41
professionalSoMad4-Aug-12 17:41 
QuestionInstalling a filter driver Pin
MarkB7771-Aug-12 2:09
MarkB7771-Aug-12 2:09 
GeneralOverwrite file and delete file/folder driver Pin
Brandon-X1200025-Jul-12 22:33
Brandon-X1200025-Jul-12 22:33 
GeneralRe: Overwrite file and delete file/folder driver Pin
Richard MacCutchan26-Jul-12 0:18
mveRichard MacCutchan26-Jul-12 0:18 
GeneralRe: Overwrite file and delete file/folder driver Pin
Brandon-X1200026-Jul-12 14:08
Brandon-X1200026-Jul-12 14:08 
GeneralBroken Ethernet adapter help Pin
Brandon-X1200024-Jul-12 14:09
Brandon-X1200024-Jul-12 14:09 
GeneralRe: Broken Ethernet adapter help Pin
Richard Andrew x6424-Jul-12 15:02
professionalRichard Andrew x6424-Jul-12 15:02 
GeneralRe: Broken Ethernet adapter help Pin
Brandon-X120004-Aug-12 17:21
Brandon-X120004-Aug-12 17:21 
GeneralRe: Broken Ethernet adapter help Pin
Dave Kreskowiak24-Jul-12 18:54
mveDave 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.