System.Windows.Forms.Control.UpdateBounds Method

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

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected void UpdateBounds ()

Remarks

If the new Control.Size of the control is different from the previous System.Drawing.Size, the Control.SizeChanged event is raised. Likewise, if 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