I'm running a .NET 2.0 program on many computers. On one I had this error occurring repeatedly until I reset the application.
//line below was throwing the exception this.myButton.BackgroundImage = global::myNamespace.Properties.Resources.myImage; Exception:
ExceptionType: ArgumentException Message: Parameter is not valid. Source: System.Drawing StackTrace: at System.Drawing.Image.get_Flags() at System.Windows.Forms.ControlPaint.IsImageTransparent(Image backgroundImage) at System.Windows.Forms.Control.set_BackgroundImageLayout(ImageLayout value) The resource exists and it works fine once reset. Can anyone provide any insight as to might be happening?