Connecting Tech Pros Worldwide Help | Site Map

dual monitors

Strah
Guest
 
Posts: n/a
#1: Nov 21 '05
Is there a way to determine whether a computer is connected to dual monitors
with VB.NET code? Thanks,

Strah
YYZ
Guest
 
Posts: n/a
#2: Nov 21 '05

re: dual monitors


> Is there a way to determine whether a computer is connected to dual monitors[color=blue]
> with VB.NET code?[/color]

Dim iIndex as Integer
Dim Screens() As System.Windows.Forms.Screen = _
System.Windows.Forms.Screen.AllScreens

For iIndex = 0 to screens.GetUpperBound(0)
' Do whatever you want
Next

Matt

Strah
Guest
 
Posts: n/a
#3: Nov 21 '05

re: dual monitors


Thanks a lot YYZ.... this is exactly what I needed

"YYZ" wrote:
[color=blue][color=green]
> > Is there a way to determine whether a computer is connected to dual monitors
> > with VB.NET code?[/color]
>
> Dim iIndex as Integer
> Dim Screens() As System.Windows.Forms.Screen = _
> System.Windows.Forms.Screen.AllScreens
>
> For iIndex = 0 to screens.GetUpperBound(0)
> ' Do whatever you want
> Next
>
> Matt
>
>[/color]
Closed Thread