C#中画的图为什么在最小化后会消失?
private void pictureBox1_Paint(object sender, PaintEventArgs e){
Graphics 易做图;
易做图 = pictureBox1.CreateGraphics();
Pen pen=new Pen(Color.Red);
Bitmap pic = new Bitmap(@"D:\201138155254591.jpg");
易做图.DrawImage(pic, 250, 50, 700, 600);
}
--------------------编程问答-------------------- private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
e.graphics.DrawImage(pic, 250, 50, 700, 600);
}
--------------------编程问答-------------------- 这个问题我遇到过 !好像要refresh()一下的!最小化之后要重绘的!
补充:.NET技术 , C#