![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Displaying a window with dual monitors Is it possible to get a Window to display on a second screen? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Displaying a window with dual monitors The following VB code displays the form W centered in the second screeen if any. ************************************************************* Dim W as new Window Dim DisplayRect As System.Drawing.Rectangle If System.Windows.Forms.Screen.AllScreens.Length > 1 Then DisplayRect = System.Windows.Forms.Screen.AllScreens(1).Bounds Else DisplayRect = System.Windows.Forms.Screen.PrimaryScreen.Bounds End If Dim ScreenHeight As Double = RectEcranAffichage.Height Me.Top = RectEcranAffichage.Top + ScreenHeight / 2 - W.ActualHeight / 2 Dim ScreenWidth As Double = RectEcranAffichage.Width W.Left = Me.Left = DisplayRect .Left + ScreenWidth / 2 - W.ActualWidth / 2 W.Show ************************************************************** Hope it helps. "steve" <steve@home.com> wrote in message news:O$a97O7aHHA.5044@TK2MSFTNGP05.phx.gbl... > Is it possible to get a Window to display on a second screen? > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Dual monitors displaying indentically | Vista General | |||
| settings changed - 3 monitors - maximises window across all 3 monitors instead of 1 | Vista performance & maintenance | |||
| settings changed - 3 monitors - maximises window across all 3 monitors instead of 1 | Vista installation & setup | |||
| Displaying a secondary window | PowerShell | |||
| Dual Monitors - Dual Wallpapers | Vista General | |||