首页 > 代码库 > 强制设置双缓冲DoubleBuffered 解决tableLayoutPanel 闪烁

强制设置双缓冲DoubleBuffered 解决tableLayoutPanel 闪烁

tableLayoutPanel.GetType().GetProperty("DoubleBuffered",

  System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic)

  .SetValue(tableLayoutPanel, true, null);

强制设置双缓冲DoubleBuffered 解决tableLayoutPanel 闪烁