public void ResumeLayout(bool performLayout) { if (layout_suspended > 0) { layout_suspended--; } if (layout_suspended == 0) { if (this is ContainerControl) (this as ContainerControl).PerformDelayedAutoScale(); if (!performLayout) foreach (Control c in Controls.GetAllControls ()) c.UpdateDistances (); if (performLayout && layout_pending) { PerformLayout(); } } } [EditorBrowsable (EditorBrowsableState.Never)]
private static void ResumeDrawing(Control parent) { parent.ResumeLayout(); SendMessage(parent.Handle, WM_SETREDRAW, true, 0); // Force redraw of control now parent.Refresh(); }