Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

Flicker free Form Painting

4.50/5 (3 votes)
29 Sep 2010CPOL 8K  
Instead I would use double buffering. Just use the linethis.SetStyle(ControlStyles.AllPaintingInWmPaint |ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);There is a nice article on double buffering Win Forms here[^].
Instead I would use double buffering. Just use the line

this.SetStyle(ControlStyles.AllPaintingInWmPaint |ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);


There is a nice article on double buffering Win Forms here[^].

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)