您正在尝试绘制整个表格,这肯定需要时间。如果你只想改变表格的一部分,在你的情况下是将炸弹人移动到新的位置,只需使你想要重新绘制的区域失效,然后将它传递给Invalidate方法。
做一些类似的事情。
//Invalidate previous position of bomberman
Rectangle invalid = new Rectangle(picturebox1.Location.x,picturebox1.Location.y,picturebox1.Width,picturebox1.Height);
Invalidate(invalid);
//Add code to move your picture box and then call above two lines again
invalid = new Rectangle(picturebox1.Location.x,picturebox1.Location.y,picturebox1.Width,picturebox1.Height);
Invalidate(invalid);
注肯定,但财产以后类似抛光的代码将工作...
这里是供参考的例子的链接。 http://msdn.microsoft.com/en-us/library/ms229628.aspx
请勿使用图片框。重写窗体的OnPaint()方法并使用e.Graphics.DrawImage()绘制墙。 – 2011-01-20 08:50:32