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 _
)
[C#]
public void ResumeLayout(
 bool performLayout
);
[C++]
public: void ResumeLayout(
 bool performLayout
);
[JScript]
public function ResumeLayout(
   performLayout : Boolean
);

Parameters

performLayout
true to execute pending layout requests; otherwise, false.

Remarks

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.

Requirements

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

Show:
© 2016 Microsoft