Visual Basic: Windows Controls

Visual Studio 6.0

Scroll Event (Slider Control)

See Also    Example    Applies To

Occurs when you move the slider on a Slider control, either by clicking on the control or using keyboard commands.

Syntax

Private Sub object_Scroll( )

The object placeholder represents an object expression that evaluates to a Slider control.

Remarks

The Scroll Event occurs before the Click event.

The Scroll Event continuously returns the value of the Value property as the slider is moved. You can use this event to perform calculations to manipulate controls that must be coordinated with ongoing changes in the Slider control. In contrast, use the Change event when you want an update to occur only once, after a Slider control's Value property has changed.

Note   Avoid using a MsgBox statement or function in this event.

Show: