PictureBox and Dispose
<p>I must delete an image file if it already exists (overwriting it) while a <code>PictureBox</code> is showing the same.
However If I try to delete the file it's blocked by <code>PictureBox</code>.
So I write the following code:</p>

<pre><code>if (File.Exists(file))
{
   Image _tmp = (Image)current_pic.Image.Clone();                 
   current_pic.Image.Dispose();
   current_pic.Dispose();
   File.Delete(path);
   current_pic.Image = _tmp;
   current_pic.Image.Save(file, ImageFormat.Jpeg);
}
else
   current_pic.Image.Save(file, ImageFormat.Jpeg); 
</code></pre>

<p>and the Image on filesystem is deleted thanks to <code>pic.Dispose()</code> but the Image is not
more showed inside the <code>PictureBox</code>.
Maybe does <code>Dispose()</code> method invalidate <code>PictureBox</code>?</p>
