directing output to selected monitor in a multi-monitor desktop

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

Is there a way to send output from a .NET app to a selected monitor screen
in a 3-monitor client desktop?
Currently, my app sends output to 3 windows then I have to move/drag each of
them to the proper monitor connected to the desktop.

Thanks

Bill
 
You may want to check out the System.Windows.Forms.Screen class, I'm
not sure if it has the "send to monitor 3" functionality, but it's a
place to start. Also, most (maybe all?) multimonitor setups list the
resolution as the sum of all monitors. (i.e. for three side by side
monitors running at 1280x1024 the system resolution would be 3840x1024)
In that example you could set the left property of the form to 1280 and
the form would show on the second monitor, or set it to 2560 to put it
on the third monitor.

Thats all I can think of at the moment...

Thanks,

Seth Rowe
 
Seth;
Thanks for the tip.
I think we can get some where.
here's the results on my own PC (2 monitors)

Device Name: \\.\DISPLAY1
Bounds: {X=1152,Y=0,Width=1152,Height=864}
Primary Screen: False

Device Name: \\.\DISPLAY2
Bounds: {X=0,Y=0,Width=1152,Height=864}
Primary Screen: True

Display2 has X=0 Y=0 Width=1152
Display1 has X=1152 Y=0 Width=1152

If I have another monitor (same size), Dispaly3 should have X=2304 Y=0
Width=1152

Using this example, can you please help show me how to send the outputs #1,
#2, #3 to the respective display# ?

The codes I used to display a new winform :

Dim frmScreen As New frmMultiScreens

With frmScreen

..Controls.Add(mPanel)

..WindowState = FormWindowState.Maximized

..Show()

'.ShowDialog()

End With


Thanks a million

Bill
 
Back
Top