To create an event procedure that runs when the Resize event occurs, set the OnResize property to [Event Procedure], and click the Build button .
Syntax
Private Sub Form_Resize( )
Remarks
To repaint the screen every time a form is resized, use the Repaint method in a Resize event procedure.
You can't cancel the Resize event.