pictureBox图片显示红叉
qemng 2017-07-22 10:26:56 C#程序,界面上有辆个pictureBox显示图片,覆盖全屏,运行时正常,但是当我切换到桌面,然后再点击这个软件的时候,其中一个显示的图片就变成红叉了,如果补切换到其他的地方的话,就不会这样,报错内容如下
2017-07-22 10:16:21,654 [9]INFO Daily.Logging - 程序需要重新启动:System.ArgumentException: 参数无效。
在 System.Drawing.Image.get_RawFormat()
在 System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus)
在 System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
在 System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
在 System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
在 System.Windows.Forms.Control.WmPaint(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) System.Threading.ThreadExceptionEventArgs
这个是什么问题啊,网上有说是因为DISPOSE里,但界面上两个pictureBox是一样的,为什么只有其中一个出错了呢,固定的那一个,两个pictureBox都是复制粘贴产生的,在线等