Version

SetBoundsCore Method

Overriden. Called when the control's size or position is about to change.
Syntax
'Declaration
 
Protected Overrides Sub SetBoundsCore( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal specified As BoundsSpecified _
) 
protected override void SetBoundsCore( 
   int x,
   int y,
   int width,
   int height,
   BoundsSpecified specified
)

Parameters

x
The new System.Windows.Forms.Control.Left property value of the control.
y
The new System.Windows.Forms.Control.Top property value of the control.
width
The new System.Windows.Forms.Control.Width property value of the control.
height
The new System.Windows.Forms.Control.Height property value of the control.
specified
A bitwise combination of the System.Windows.Forms.BoundsSpecified values.
Remarks
Required to override the sizing of the control when autosized.
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