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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -