Bee Eee Blog

C# Enabling Double buffering for a form.

by brian on Jan.01, 2008, under .NET, GUI, c#, coding

Ran across a simple how-to to enable double buffering for a form. Just put the code snippet in the form’s constructor after the InializeComponents

this.SetStyle(
            ControlStyles.AllPaintingInWmPaint |
            ControlStyles.UserPaint |
            ControlStyles.DoubleBuffer,true);

This gets rid of flicker, it also makes draw a tad slower.

Found the code at: http://www.bobpowell.net/doublebuffer.htm Thanks Bob Powell!

2 comments for this entry:
  1. Pages tagged "bob powell"

    [...] bookmarks tagged bob powell C# Enabling Double buffering for a form. saved by 9 others     RamenFlavedNaruto bookmarked on 01/25/08 | [...]

  2. FREDRICK


    CheapTabletsOnline.Com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Online Pharmacy. Order pills online

    Buy:Synthroid.Petcam (Metacam) Oral Suspension.Nexium.Accutane.Human Growth Hormone.Retin-A.Arimidex.Mega Hoodia.Zyban.Prednisolone.Zovirax.Valtrex.Lumigan.Prevacid.100% Pure Okinawan Coral Calcium.Actos….

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...