How to fix the flickering in User controls.

Posted by Royson on Stack Overflow See other posts from Stack Overflow or by Royson
Published on 2010-04-10T06:24:17Z Indexed on 2010/04/10 6:33 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

In my application i am constantly moving from one control to another. I have created no. of user controls, but during navigation my controls gets flicker. it takes 1 or 2 sec to update. I tried to set this

SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
or
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true); 
SetStyle(ControlStyles.DoubleBuffer, true);

but it didn't help... Each control has same background image with different controls. So what is the solution for it..
Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms