
I'm connected to my gateway monitor via the dvi1 port on the video card, then a dvi - vga connector that goes into a kvm switch to share the monitor between 2 computers.

Only my monitor ( 22" Gateway Flat Panel ) shows up in Screen.AllScreens
#Vb net monitor 720p#
I have a GeForce 7900GT 256MB 256-bit GDDR3 PCI Express x16 and a 42" Panasonic 720p HD TV Hello all i seem to be having an issue querying attached display devices. Is it possible to get monitor information of some other machine In particular, I want to know how many monitors are connected to some other machine. Placing a form within the bounds of a screen, might hide portions of it behind a taskbar or docked window. ' Set the form location so it appears at Location (100, 100) on the screen 1įorm.Location = + new Point(100, 100)įYI, please note that the bounds property of the screen object is the entire screen, while the workingarea is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars.
#Vb net monitor manual#
' Set the StartPosition to Manual otherwise the system will assign an automatic start positionįorm.StartPosition = FormStartPosition.Manual Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MyForm2.Top = myScreens(1).WorkingArea.Height / 2Īll you need to do to show a form on a specifi screen is to set its Location property so it is in the specified screen Bounds: MyForm2.Left = myScreens(0).Bounds.Width + myScreens(1).WorkingArea.Width / 2 'Position the top left corner of form 2 in the middle of screen 2

Me.Top = myScreens(0).WorkingArea.Height / 2 - Me.Height / 2 Me.Left = myScreens(0).WorkingArea.Width / 2 - Me.Width / 2 'Position form 1 in the middle of screen 1 Here's an example (not tested):ĭim myScreens() As Screen = Screen.AllScreens

You can use the WorkingArea property of the Screen object. If i can get this then I should be fine with what I am trying to accomplish. I've been tinkering with .AllScreens and can get screen information (device names, bounds, working area, etc.)Ĭan anyone offer a simple example of opening a form on a secondary monitor from the primary screen I'm experimenting with dual monitors and VB. Index ‹ Visual Basic ‹ Visual Basic General
