Click here to Skip to main content
14,422,938 members
   

C#

 
GeneralRe: How to drag with mouse Controls groupBox1 in Run time ? Pin
Richard MacCutchan16-Oct-19 22:56
communityengineerRichard MacCutchan16-Oct-19 22:56 
Questionhow to create a text editor that reads c sharp source and display together with colors text and brackets Pin
Member 1462267414-Oct-19 22:35
MemberMember 1462267414-Oct-19 22:35 
AnswerRe: how to create a text editor that reads c sharp source and display together with colors text and brackets Pin
OriginalGriff14-Oct-19 22:46
communityengineerOriginalGriff14-Oct-19 22:46 
AnswerRe: how to create a text editor that reads c sharp source and display together with colors text and brackets Pin
Eddy Vluggen15-Oct-19 2:25
mveEddy Vluggen15-Oct-19 2:25 
QuestionSystem.NullReferenceException Pin
Alrzini14-Oct-19 11:09
MemberAlrzini14-Oct-19 11:09 
AnswerRe: System.NullReferenceException Pin
OriginalGriff14-Oct-19 11:16
communityengineerOriginalGriff14-Oct-19 11:16 
QuestionHelp with getting Monitors (Screen) information Pin
mniceguy8114-Oct-19 7:35
Membermniceguy8114-Oct-19 7:35 
AnswerRe: Help with getting Monitors (Screen) information Pin
Dave Kreskowiak14-Oct-19 10:35
mveDave Kreskowiak14-Oct-19 10:35 
Win32_DesktopMonitor was deprecated. It also will not tell you accurate information about the displays attached. You may not even get any information at all. On my machine right now, I've got a laptop built-in display and two external monitors. There's only a single instance of Win32_DesktopMonitor being returned and it just lists generic information. There's nothing on the manufacturer or model of the monitors, or anything else that would be useful.

About the only class that returns anything accurate is the Win32_VideoController class, but it won't return any monitor information.

About the only EASILY ACCESSIBLE place I've found that can get you information on the monitors is looking in the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY. You're looking for the EDID data, which you're going to have to decode to get the vendor/model information.

Be warned. Everything under this key will give you the EDID data for EVERY monitor that has ever been attached to the system. It does NOT remove the data for monitors that are no longer attached!

The hard way to do it would be to call the Windows EnumDisplayDevices function in user32.dll.

GeneralRe: Help with getting Monitors (Screen) information Pin
mniceguy8114-Oct-19 11:42
Membermniceguy8114-Oct-19 11:42 
GeneralRe: Help with getting Monitors (Screen) information Pin
Dave Kreskowiak14-Oct-19 12:54
mveDave Kreskowiak14-Oct-19 12:54 
GeneralRe: Help with getting Monitors (Screen) information Pin
mniceguy8114-Oct-19 12:56
Membermniceguy8114-Oct-19 12:56 
QuestionResize controls at runtime (borderless form) Pin
Member 1407482710-Oct-19 16:42
MemberMember 1407482710-Oct-19 16:42 
AnswerRe: Resize controls at runtime (borderless form) Pin
OriginalGriff10-Oct-19 21:23
communityengineerOriginalGriff10-Oct-19 21:23 
GeneralRe: Resize controls at runtime (borderless form) Pin
Member 1407482711-Oct-19 2:24
MemberMember 1407482711-Oct-19 2:24 
AnswerRe: Resize controls at runtime (borderless form) Pin
Eddy Vluggen11-Oct-19 2:29
mveEddy Vluggen11-Oct-19 2:29 
GeneralRe: Resize controls at runtime (borderless form) Pin
Member 1407482711-Oct-19 3:25
MemberMember 1407482711-Oct-19 3:25 
GeneralRe: Resize controls at runtime (borderless form) Pin
Eddy Vluggen11-Oct-19 3:29
mveEddy Vluggen11-Oct-19 3:29 
GeneralRe: Resize controls at runtime (borderless form) Pin
Rob Philpott11-Oct-19 4:03
MemberRob Philpott11-Oct-19 4:03 
GeneralRe: Resize controls at runtime (borderless form) Pin
Eddy Vluggen11-Oct-19 4:07
mveEddy Vluggen11-Oct-19 4:07 
AnswerRe: Resize controls at runtime (borderless form) Pin
BillWoodruff21-Oct-19 4:49
mveBillWoodruff21-Oct-19 4:49 
Question2D Arrays Pin
LilJokez_Gaming10-Oct-19 12:27
MemberLilJokez_Gaming10-Oct-19 12:27 
AnswerRe: 2D Arrays Pin
Luc Pattyn10-Oct-19 14:11
sitebuilderLuc Pattyn10-Oct-19 14:11 
QuestionHelp with WMI Connect Remotely Pin
mniceguy819-Oct-19 5:30
Membermniceguy819-Oct-19 5:30 
AnswerRe: Help with WMI Connect Remotely Pin
Dave Kreskowiak9-Oct-19 7:47
mveDave Kreskowiak9-Oct-19 7:47 
GeneralRe: Help with WMI Connect Remotely Pin
mniceguy819-Oct-19 23:28
Membermniceguy819-Oct-19 23:28 

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.