InvalidOperationException – object is currently in use elsewhere – red cross

This is because Gdi+ Image class is not thread safe. Hovewer you can avoid InvalidOperationException by using lock every time when you need to Image access, for example for painting or getting image size: Image DummyImage; // Paint lock (DummyImage) e.Graphics.DrawImage(DummyImage, 10, 10); // Access Image properties Size ImageSize; lock (DummyImage) ImageSize = DummyImage.Size; BTW, … Read more

nullable object must have a value

You should change the line this.MyDateTime = myNewDT.MyDateTime.Value; to just this.MyDateTime = myNewDT.MyDateTime; The exception you were receiving was thrown in the .Value property of the Nullable DateTime, as it is required to return a DateTime (since that’s what the contract for .Value states), but it can’t do so because there’s no DateTime to return, … Read more