public static void SetImage(PictureBox box, Image image) { if (box.InvokeRequired) { box.Invoke(new setImage(SetImage), box, image); } else { box.Image = image; box.Invalidate(); } }