I actually know how to do it, but it wont be the picturebox only, you would have to do it yourself. So that when you click, it knows on what pixel you have clicked? thats easy men. I will just give you some help I wont write the full code!
Make 3 labels. and 1 extra picturebox.
The labels are for the red, green and blue values, the picturebox is for the whole colour.
Code:
Dim lColor As Integer
Dim lDC As Integer
lDC = GetWindowDC(0)
lColor = GetPixel(lDC, MousePosition.X, MousePosition.Y)
Dim r As Integer = lColor Mod 256
Dim g As Integer = (lColor \ 256) Mod 256
Dim b As Integer = lColor \ 256 \ 256
PictureBox1.BackColor = Color.FromArgb(r, g, b)
Button1.Text = r
Button2.Text = g
Button3.Text = b
and you would need this declarations just below public class form1.
Code:
Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer) As Integer
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Integer) As Integer