Question: I'm working on a .NET C# project and would like to get the pixel value when I click a picturebox, how can I achieve that?

The basic idea is that when I click anywhere in the picturebox, I get the pixelvalue of that image point..

Thanks!

Answer: 
Use this:

```
private void pictureBox2_MouseUp(object sender, MouseEventArgs e)
{
    Bitmap b = new Bitmap(pictureBox1.Image);
    Color color = b.GetPixel(e.X, e.Y);
}

```
Unless that picturebox is in the size of a pixel, I don't think you can. Control onclick events doesn't save specific click location. If you are talking about color, not possible in c#