I need to find out what is currently hold in PictureBox.Image property and take action as necessary. I tried various things but can't get it work
Compare it with PictureBox which Image is set to null
PictureBox emptyImg = new PictureBox();
emptyImg.Image = null;
//Compare
myPictureBox.Image.Equals((Bitmap) emptyImg.Image)
Compare with existing resources
myPictureBox.Image.Equals((Bitmap) Properties.Resources.blue)
Project builds without any errors but once I run form its kicks meaningless errors.