Resize

This event occurs when a form or PictureBox control is first displayed or when the window state of a form changes.

Syntax 1

Private Sub form_Resize( )

Syntax 2

Private Sub picturebox_Resize(height, width)

Parameters

form
Object expression that evaluates to a Form object.
picturebox
Object expression that evaluates to a PictureBox control.
height
New height of the control.
width
New width of the control.

Remarks

Whenever the AutoRedraw property is set to False and the form is resized, Visual Basic also calls the related events, Resize and Paint, in that order.