public static void Set_DoubleBuffered(System.Windows.Forms.Control control)
{
if (System.Windows.Forms.SystemInformation.TerminalServerSession)
{
return;
}
System.Reflection.PropertyInfo aProp = typeof(System.Windows.Forms.Control).GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
aProp.SetValue(control, true, null);
}
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
No comments:
Post a Comment