winform 1_双缓存(避免闪烁)

   public static void SetDoubleBuffer(Control ctrl)
        {
            ctrl.GetType().GetProperty("DoubleBuffered",
  System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(ctrl,
  true, null);
        }

你可能感兴趣的:(winform)