
Originally Posted by
jmcilhinney
1. Use the Screen class to get the size of the desktop on the primary screen.
Couldn't you just get the pixel under the mouse pointer, maybe something like...
Code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Using bmp As New Bitmap(1, 1)
Using g As Graphics = Graphics.FromImage(bmp)
g.CopyFromScreen(MousePosition, Point.Empty, bmp.Size)
Dim c As Color = bmp.GetPixel(0, 0)
Debug.WriteLine(c)
End Using
End Using
End Sub