Version

SuspendLayout Method

Suspends processing the positioning of the controls managed by the component.
Syntax
'Declaration
 
Public Sub SuspendLayout() 
public void SuspendLayout()
Remarks

The SuspendLayout method is used to prevent the component from arranging the controls in its associated ContainerControl. This method is often used when programatically adding controls to the control container or when initializing the constraints for the controls it arranges.

ResumeLayout(Boolean) must be called for each time that SuspendLayout is invoked.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also