C#  vs2008编写的俄罗斯方块最少化或窗口覆盖前最少化或窗口覆盖后下边的绘制的图形不见了  但事实上还是存在的   这是为什么呢??求解!!!!!!

解决方案 »

  1.   

    看不见图片
    http://topic.csdn.net/u/20100919/12/71bb82e8-0809-4fd5-adf5-ee96e057a7f4.html
      

  2.   

    我的一个绘制例子
                   Graphics gs4 = panel4.CreateGraphics();
                    gs4.FillRectangle(blackBrush, Block1[1 + Shape[curShape1].y1, 1 + Shape[curShape1].x1].rect);
                    gs4.FillRectangle(blackBrush, Block1[1 + Shape[curShape1].y2, 1 + Shape[curShape1].x2].rect);
                    gs4.FillRectangle(blackBrush, Block1[1 + Shape[curShape1].y3, 1 + Shape[curShape1].x3].rect);
                    gs4.FillRectangle(blackBrush, Block1[1 + Shape[curShape1].y4, 1 + Shape[curShape1].x4].rect);                gs4.FillRectangle(yellowBrush, Block1[1 + Shape[nextShape1].y1, 1 + Shape[nextShape1].x1].rect);
                    gs4.FillRectangle(yellowBrush, Block1[1 + Shape[nextShape1].y2, 1 + Shape[nextShape1].x2].rect);
                    gs4.FillRectangle(yellowBrush, Block1[1 + Shape[nextShape1].y3, 1 + Shape[nextShape1].x3].rect);
                    gs4.FillRectangle(yellowBrush, Block1[1 + Shape[nextShape1].y4, 1 + Shape[nextShape1].x4].rect);                gs4.Dispose();
      

  3.   

    把绘图的代码写到paint事件!
      

  4.   

    画panel上的?panel有个事件是paint,把画图部分都放paint事件里萨