winforms - How do I double buffer a Panel in C#? -
I have a panel on which there is a roulette wheel, and I need to buffer the panel, so that the instability closes Do it. . Can anyone help me?
~ T-Fox
Edit:
Yes, I have tried.
1.doublebuffered panel does not exist, only this.doublebuffered. And I do not need to buffer the form, only the panel.
You have to get from the panel or PictureBox
to enable buffering It has its effect on the basis of how you choose.
If you set it up then you should be okay if you have a double fluff flag.
If you update the styles manually, then you have to paint yourself in WM_PAINT.
If you really feel ambitious, you can create your own back buffer as a bitmap. / P>
using System.Windows.Forms; Public category MyDisplay: Panel {Public MyDisplay () {this.Doublebuffered = true; // or SetStyle (ControlStyles.AllPaintingInWmPaint, true); SetStyle (ControlStyles.OptimizedDoubleBuffer, true); UpdateStyles (); }}
Comments
Post a Comment