In a project, controls flicker when they change size.
Solved with double buffer technology.
| Member Names | illustrate |
| ContainerControl | Such asIndeed true, then the control is a container-like control. |
| UserPaint | Such asIndeed true, the controls will draw on their own, not through the operating system. Such asIndeedfalse, the Paint event will not be raised. This style applies only to classes that derive from Control. |
| Opaque | Such asIndeed true, the control is drawn as opaque and does not draw the background. |
| ResizeRedraw | Such asIndeed true,redraws when the control is resizedControls. |
| FixedWidth | Such asIndeed true, the control has a fixed width when autoscaling. For example, if a layout operation attempts to rescale a control to fit a new Font, the control's Width will remain the same. |
| FixedHeight | Such asIndeed true, the control has a fixed height when autoscaling. For example, if a layout operation tries to rescale a control to fit a new font, the control's Height will remain the same. |
| StandardClick | Such asIndeed true, the control will implement the standard Click behavior. |
| Selectable | Such asIndeed true, the control can receive focus. |
| UserMouse | Such asIndeed true, the control completes its own mouse processing, so the mouse event is not handled by the operating system. |
| SupportsTransparentBackColor | Such asIndeed true, the control accepts a BackColor with an alpha component less than 255 to simulate transparency. Only in the UserPaint bit is set totrueAnd the parent control is only simulated transparent when derived from Control. |
| StandardDoubleClick | Such asIndeed true, the control implements the standard DoubleClick behavior. If the StandardClick bit is not set to true, ignore this style. |
| AllPaintingInWmPaint | Such asIndeed true, the control will ignore the WM_ERASEBKGND window message to reduce flickering. Only if the UserPaint bit is set to trueThis style should be applied. |
| CacheText | Such asIndeed true, the control keeps a copy of the text instead of getting a copy of the text from the Handle every time it is needed. This style defaults to false. This behavior improves performance but makes it difficult to keep your text in sync. |
| EnableNotifyMessage | Such asIndeed true, calls the OnNotifyMessage method for each message sent to the control's WndProc. This style defaults to false. EnableNotifyMessage does not work in partially trusted cases. |
| DoubleBuffer | Such asIndeed true, then draws in the buffer, and the result is output to the screen when it is finished. Double buffers prevent flickering caused by control redrawing. If you set DoubleBuffer to true, then UserPaint and AllPaintingInWmPaint should also be set to true。 |
| OptimizedDoubleBuffer | Such asIndeed true, the control is drawn in the buffer first, rather than directly onto the screen, which reduces flickering. If this property is set to true, you should also set AllPaintingInWmPaint to true。 |
| UseTextForAccessibility | Specifies the value of the control's Text property, and if set, determines the default Active Accessibility name and shortcut key for the control. |