UpdateBounds Method (Int32, Int32, Int32, Int32)
Collapse the table of content
Expand the table of content

Control.UpdateBounds Method (Int32, Int32, Int32, Int32)


Updates the bounds of the control with the specified size and location.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Protected Sub UpdateBounds (
	x As Integer,
	y As Integer,
	width As Integer,
	height As Integer


Type: System.Int32

The X coordinate of the control.

Type: System.Int32

The Y coordinate of the control.

Type: System.Int32

The Width of the control.

Type: System.Int32

The Height of the control.

If the new Size of the control if different from the previous Size, the SizeChanged event is raised. Likewise, is the Location of the control changes, the LocationChanged event is raised.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft