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:
Leave a Reply
You must be logged in to post a comment.

January 25th, 2008 on 10:37 pm
[...] bookmarks tagged bob powell C# Enabling Double buffering for a form. saved by 9 others RamenFlavedNaruto bookmarked on 01/25/08 | [...]
September 9th, 2010 on 12:49 am
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….