double buffer in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Rain said:
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

--
 
Back
Top