Thursday, July 19, 2012

Limit flickering on winforms

Here's the snippet to limit flicker in forms. Put it above the initialize component method in your constructor.
Code:
//limit flicker  
SetStyle(ControlStyles.OptimizedDoubleBuffer   
    | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);  
 InitializeComponent();  
Cheers! Source: mijalko

0 comments:

Post a Comment