Control.ResumeLayout Method (Boolean)
Resumes normal layout logic. Optionally forces an immediate layout of pending layout requests.
[Visual Basic] Overloads Public Sub ResumeLayout( _ ByVal performLayout As Boolean _ ) [C#] public void ResumeLayout( bool performLayout ); [C++] public: void ResumeLayout( bool performLayout ); [JScript] public function ResumeLayout( performLayout : Boolean );
- true to execute pending layout requests; otherwise, false.
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 allow the changes to take effect.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family