日期:2014-05-18 浏览次数:20973 次
Image im = Image.FromFile("1.bmp"); this.pictureBox1.Image = im; this.pictureBox1.Image = null; im.Dispose(); if (System.IO.File.Exists("1.bmp")) System.IO.File.Delete("1.bmp");
------解决方案--------------------
PictutrBox1.Image =Image.FromFile("E:\\picture\\o_19.jpg");
PictutrBox1.Image.Dispose();
PictutrBox1.Image =null;
if (File.Exists("E:\\picture\\o_19.jpg"))
{
File.Delete("E:\\picture\\o_19.jpg");
}