간단하다!!!
DoubleBufferPanel 클래스를 만들어준 후
펼쳐두기..
public class DoubleBufferPanel : Panel
{
public DoubleBufferPanel()
{
// Set the value of the double-buffering style bits to true.
this.SetStyle(ControlStyles.DoubleBuffer |
ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint,
true);
this.UpdateStyles();
}
}
Form 디자니어에서 수정
펼쳐두기..
this.panel1 = new System.Windows.Forms.Panel(); 을
this.panel1 = new DoubleBufferPanel(); 으로 수정
이것은 폼이 아닌 패널에서의 더블버퍼링이닷.
패널의 경우
this.DoubleBuffered = true;
이거만 해주어도 된다더라.. 아직 해보진 않았다.
0 개의 댓글:
댓글 쓰기