Rain wrote:
Hello Gurus!
I really need this one to finish a module in my thesis. PLease please
help me. I need a double buffer class in C# so i can call it and use
it anytime i want,
the problem is everything ive tried as a class doesnt work.. please
please help. I only need the double buffering of controls,
graphics... as a class. Can anyone help me with this? Thank You so
so much in advacne. I would really appreciate any help.
You should set the form on which the controls which require double
buffering into double buffering mode:
this.SetStyle( ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true );
I use that in a roto-zoomer example which performs the old-skool
demoscene effect of a roto-zoomer in a picture box :)
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------