Click here to Skip to main content
15,608,738 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everyone what is DoubleBuffered? and how we can use it,where we must use it?
thank you...

This is the feature of a control (if you are talking about System.Windows.Forms), or it can be some similar feature in other UI libraries.

This is a very important feature. It helps to effectively fight flicker.

Very often, your rendering method cause flicker. Imagine that you have some blue object on a background of some white object. How you re-render it when you want to move the blue object? First, you need to draw a white object, and then you draw a blue object, because it should be on top. It will quickly flash a lot of white color, before you get your blue again. Do you see the problem?

Now, double buffering changes this sequence. Under the hood, images are first rendered on some bitmap. And then the whole bitmap is rendered on your control at once. No more noticeable flicker.

Share this answer
z3ngew 31-Aug-13 13:01pm    
Good explanation
Sergey Alexandrovich Kryukov 31-Aug-13 14:44pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900