VLFormDesigner Reference

EventControlMoving

See Also See Also Applies To Applies To

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

 

Syntax

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

 

The ControlMoving 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 position is being changed by the form designer.
nLeft An single expression that indicates the value that will be assigned to Left property of aControl.

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

nTop An single expression that indicates the value that will be assigned to Top property of aControl.

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

nWidth An single expression that indicates the current width 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 current height 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).