System.Windows.Forms.Control.Resize Event

Occurs when the control is resized.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public event EventHandler Resize

Remarks

To determine the Control.Size of the resized control, you can cast the sender parameter of the EventArgs data to a System.Windows.Forms.Control and get its Control.Size property (or Control.Height and Control.Width properties individually).

To handle custom layouts, use the Control.Layout event instead of the Resize event. The Control.Layout event is raised in response to a Control.Resize event, but also in response to other changes that affect the layout of the control.

For more information about handling events, see Consuming Events.

Requirements

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