Export (0) Print
Expand All

Control.ResumeLayout Method (Boolean)

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

'Declaration
Public Sub ResumeLayout ( _
	performLayout As Boolean _
)
'Usage
Dim instance As Control
Dim performLayout As Boolean

instance.ResumeLayout(performLayout)
public void ResumeLayout (
	boolean performLayout
)
public function ResumeLayout (
	performLayout : boolean
)

Parameters

performLayout

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 enable the changes to take effect.

The SuspendLayout calls must be equal to zero before ResumeLayout can be successfully called.

NoteNote

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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft