I need my program To detect the resolution of multiple monitors on a system. I have figured out to get the resolution of one monitor.
Public Function ScreenResolution() As String Dim resX As Integer = Screen.PrimaryScreen.Bounds.Width Dim rexY As Integer = Screen.PrimaryScreen.Bounds.Height Return resX & " X " & resY End Function
And I think I am pretty close to being able to get two or more monitors. I am believe I need to use something like this:
Public Function ScreenResolution() As String DIM resX As Integer = Screen.AllScreens(0).length DIM resy As Integer = Screen.AllScreens(0).Width Return resX & " X " & resY End Function
However, its not working. I know I haven't quite nailed down the correct syntax for AllScreens. I have been trying to get this right all night. Any help would be appreciated.
This post has been edited by Rabastan: 27 June 2014 - 12:23 PM