c# - Reduce flickering By Turning off WS_CLIPCHILDREN -


i have developed windows application interface has multiple text boxes , of them placed in 1 panel (the panel have background image).

whenever panel being loaded, window(with these textboxes) flickering.

i read lot of suggestions minimize flickering, 1 of suggested solutions following,

setstyle(controlstyles.userpaint, true); setstyle(controlstyles.allpaintinginwmpaint, true);  setstyle(controlstyles.doublebuffer, true); 

but not work me,

i read turning off ws_clipchildren using code:

protected override createparams createparams {   {     var parms = base.createparams;     parms.style &= ~0x02000000;  // turn off ws_clipchildren     return parms;   } } 

this code people faced same problem. want use don't know paste it, mean, read should pasted not in form, in the usercontrol's code. don't know how that, controls used not custom controls.

take here & see 1st answer:

how fix flickering in user controls

thanks in advance,

you might consider turning on ws_ex_composited style also, may in cases:

parms.exstyle |= 0x02000000; //ws_ex_composited 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -