Paul Kemper

        public static void DoubleBuffered<T>(this T obj, bool isDoubleBuffered)
        {
            Type dgvType = obj.GetType();
            PropertyInfo pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.SetProperty);
            pi.SetValue(obj, isDoubleBuffered, null);
        }
Example:
this.DoubleBuffered(true);

Description

DoubleBuffer any control

Details

  • Author: ?
  • Submitted on: 9/4/2014 11:43:36 AM
  • Language: C#
  • Type: Generic
  • Views: 1607

Double click on the code to select all.

 

;