New to Telerik UI for WinForms? Start a free 30-day trial
Double Buffered Table Layout Panel
Updated over 6 months ago
Environment
| Product Version | 2018.2.621 |
| Product | Telerik UI WinForms |
Problem
You are using a TableLayoutPanels in your application but there is a flickering when the application is loaded or the theme is changed.
Solution
Use the following inherited class and which sets the Style:
C#
public class DoubleBufferedTableLayoutPanel : TableLayoutPanel
{
public DoubleBufferedTableLayoutPanel()
: base()
{
this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
}
}