Showing posts with label double buffer. Show all posts
Showing posts with label double buffer. Show all posts

Monday, July 20, 2009

Graphics, Form Double Buffer

I was trying to double buffer a graphic control I wrote. It would blink when redrawing. I was not double buffering because, the graph would not draw. I was using the control's CreateGraphics() method. You should use the e.CreateGraphics() on the paint event. This allows you to use the double buffer without the error of not drawing.