.net - How do I enable double-buffering of a control using C# (Windows forms)? -


how enable double-buffering of control using c# (windows forms)?

i have panel control drawing stuff , owner-drawn tab control. both suffer flicker, how can enable double-buffering?

in constructor of control, set doublebuffered property, and/or controlstyle appropriately.

for example, have simple doublebufferedpanel constructor following:

this.doublebuffered = true; this.setstyle(controlstyles.userpaint |                controlstyles.allpaintinginwmpaint |               controlstyles.resizeredraw |               controlstyles.containercontrol |               controlstyles.optimizeddoublebuffer |               controlstyles.supportstransparentbackcolor               , true); 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -