Control.ResumeLayout Method (Boolean)
Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Calling the ResumeLayout method forces an immediate layout if there are any pending layout requests. When the performLayout parameter is set to true, an immediate layout occurs if there are any pending layout requests.
The SuspendLayout and ResumeLayout methods are used in tandem to suppress multiple Layout events while you adjust multiple attributes of the control. For example, you would typically call the SuspendLayout method, then set the Size, Location, Anchor, or Dock properties of the control, and then call the ResumeLayout method to enable the changes to take effect.
When adding several controls to a parent control, it is recommended that you call the SuspendLayout method before initializing the controls to be added. After adding the controls to the parent control, call the ResumeLayout method. This will increase the performance of applications with many controls.
Available since 1.1