Output to Multiple Monitors

  • Thread starter Thread starter JMM
  • Start date Start date
J

JMM

I'm writing a control program that will require a lot of
screen real estate to interact with the user. One thought
I had on how to do this was to use a dual output display
adapter and two monitors. I would then create forms that
would present specific information on each monitor. My
question is how to control which of the two monitors the
form is drawn on?
 
JMM said:
I'm writing a control program that will require a lot of
screen real estate to interact with the user. One thought
I had on how to do this was to use a dual output display
adapter and two monitors. I would then create forms that
would present specific information on each monitor. My
question is how to control which of the two monitors the
form is drawn on?

Dual-display systems are generally setup as a single extended desktop, which
makes your job very, very easy. Let's assume two monitors both running at
1024x768, positioned "side-by-side" with the "left" monitor set as primary.
If you were to position a form's top-left corner at coordinates 1025,0, it
would appear in the top-left corner of the monitor on the right. In this
example, the left monitor - the primary monitor - maps to coordinates 0,0 to
1024,768 and the right monitor maps to coordinates 1025,0 to 2048,768.

Check out the System.Windows.Forms.Screen class for properties/methods which
will help you determine the number of displays, each of their resolutions,
each of their bounds and which is the primary.

Good luck.
 
Back
Top