Click here to Skip to main content
15,896,207 members

Comments by Hannes1993 (Top 7 by date)

Hannes1993 20-Mar-23 20:40pm View    
Would it be fine if I post the full code snippet in the comments? Just in case if I missed something?
Hannes1993 20-Mar-23 5:35am View    
I'm not using Screen.AllScreens.ToString anymore. I'm following exactly as the code as given by Grant, now that I added Imports System.Linq.
Hannes1993 20-Mar-23 0:15am View    
Ok. So I added Imports System.Linq together with my other import namespaces. Now all Screen.AllScreens.Where are no longer giving me errors and I can execute. I set the coordinates values directly in Dim x = 1280 and Dim y = 0, and have my laptop screen (screen 1, 1280*720) open along with my monitor (screen 2, 1280*720). But still the same result, it opens on 1st screen...
Hannes1993 19-Mar-23 20:09pm View    
I am using the updated solution now, the `screenCount` method is commented out, so its not in use. But VB is telling me `where` is not a member of `System.Array` on lines with Screen.AllScreens.Where
Hannes1993 17-Mar-23 1:53am View    
Noted. I added another variable to convert to integer.

Dim screenCount = Screen.AllScreens.ToString()
Dim xPos = Convert.ToInt32(screenCount.text)


And changed all references to screenCount to xPos. But I still get the same problem.