VLFormDesigner Reference

Event ControlResizing

See Also See Also Applies To Applies To

This event occurs when a contained control is being resized. The event will be triggered for each of the control whose size is being changed.

 

Syntax

Private Sub object_ControlResizing (Control As Object, ByVal nLeft As Single, ByVal nTop As Single, ByVal nWidth As Single, ByVal nHeight As Single)

 

The ControlResizing event syntax has these parts:

Part Description
object An object expression that evaluates to VLFormDesigner.
aControl An object expression that evaluates to the control whose size is being changed by the form designer.
nLeft An single expression that indicates the left co-ordinate of the control specified by aControl parameter.

If aControl is a Line, this parameter indicates the value that will be assigned to X1 property

nTop An single expression that indicates the current top co-ordinate of the control specified by aControl parameter.

If aControl is a Line, this parameter indicates the value that will be assigned to Y1 property

nWidth An single expression that indicates the value that will be assigned to Width property of aControl.

If aControl is a Line, this parameter indicates the value that will be assigned to X2 property

nHeight An single expression that indicates the value that will be assigned to Height property of aControl

If aControl is a Line, this parameter indicates the value that will be assigned to Y2 property

 

Remark

This method is typically used to update any UI information that might be dependent on the position of the control that is being moved (e.g. information on the statusbar or tooltip.).