myControl.SuspendLayout();
... меняем контент в myControl ...
myControl.ResumeLayout(false);
myControl.PerformLayout();
public partial class MainWindow : Form
{
/// <summary>
/// Fix for slow UI rendering
/// </summary>
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}
}