ResumeLayout Method (Boolean)
Collapse the table of content
Expand the table of content

Control.ResumeLayout Method (Boolean)

.NET Framework 1.1

Resumes normal layout logic. Optionally forces an immediate layout of pending layout requests.

[Visual Basic]
Overloads Public Sub ResumeLayout( _
   ByVal performLayout As Boolean _
public void ResumeLayout(
 bool performLayout
public: void ResumeLayout(
 bool performLayout
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

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Control.ResumeLayout Overload List | SuspendLayout | Layout | PerformLayout

© 2016 Microsoft