System.Windows.Forms.Control.UpdateBounds Method

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

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected void UpdateBounds (int x, int y, int width, int height)

Parameters

x
The System.Drawing.Point.X coordinate of the control.
y
The System.Drawing.Point.Y coordinate of the control.
width
The System.Drawing.Size.Width of the control.
height
The System.Drawing.Size.Height of the control.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0
Since: .NET 2.0