Click here to Skip to main content
15,886,763 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Flicker free Form Painting

Rate me:
Please Sign up or sign in to vote.
4.50/5 (3 votes)
29 Sep 2010CPOL 7.9K   2  
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)


Written By
Software Developer (Senior)
United States United States
I have been writing software professionally for many years, mostly using C, C++ and C#.

Comments and Discussions

 
-- There are no messages in this forum --