Re: Registry entry for #monitors on PC



Take a look at the screen class in System.Windows.Forms
http://msdn2.microsoft.com/en-us/library/system.windows.forms.screen.aspx

http://www.codeproject.com/csharp/multi-monitor_in_c_.asp?df=100&forumid=36059&exp=0&select=1198861
includes examples.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"Ed White" <ewhite@xxxxxxxxxxxxxxxxx> wrote in message
news:B12B0215-9900-4793-99FB-EED363445990@xxxxxxxxxxxxxxxx
I have three monitors on my desktop, and I just bought a laptop which of
course has only one screen. The software I've written on the desktop
takes
advantage of the three screens by positioning various output on the left,
middle, or right screen, so I will need to modify it to run on the laptop.
To do this, it would be helpful if my software could automatically
determine
how many screens are on the PC the software is currently running on. Is
there a registry key or some other source that would tell me how many
monitors are currently running on the PC?
--
Ed


.



Relevant Pages

  • Re: XP Pro after SP2 install missing!
    ... >> displayed Microsoft Windows XP Professional before I ... > screens each time they needed to compile/link a new build of the ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Multiple Screens
    ... Look into CPropertySheet and CPropertyPages. ... >I need to create a GUI which has multiple screens. ... >The GUI I want is much like the beginning of any installation program. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Navigation Bar in Outlook
    ... Is this project using a tab control to display different 'screens'? ... have a look at DotNetFireball - http://www.codeplex.com/dotnetfireball ... Martin Zugec [MVP] ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Placing a Form on a particular Screen
    ... There is something called workingArea in the Screen class. ... With it I can very easily get the count and all the data on the various Screens attached to a system, whether it be a single screen or multiple screen system. ... I believe the FromControl method of the Screen class can be used to determine which Screen a Form is on. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Placing a Form on a particular Screen
    ... There is something called workingArea in the Screen class. ... I noticed in it that my right-screen is listed as having a Left and Right value corresponding to values as if it is an extension of my left-screen i.e., the right-screen Left equals the left-screen's Right, and the left-screen's Right is equal to the sum of the two screen's widths). ... With it I can very easily get the count and all the data on the various Screens attached to a system, whether it be a single screen or multiple screen system. ... I believe the FromControl method of the Screen class can be used to determine which Screen a Form is on. ...
    (microsoft.public.dotnet.languages.vc)