These events occur when a horizontal or vertical Form scrollbar is scrolling the scroll box or after a scroll event.
Sub Form_HScroll [( index%)]
Sub Form_HScrolling [( index%)]
Sub Form_VScroll [( index%)]
Sub Form_VScrolling [( index%)]
The HScroll event occurs when a scroll event occurs in the window's standard horizontal scroll bar. The HScrolling event occurs when a user is scrolling the scroll box in the window's standard horizontal scroll bar.
The VScroll event occurs when a scroll event occurs in the window's standard vertical scroll bar. The VScrolling event occurs when a user is scrolling the scroll box in the window's standard vertical scroll bar.
A scroll event is invoked only when the scrollbars are visible. Use the Scrollbars property to determine which scrollbars to set:
basNoScroll - None
basHorizontal - Horizontal scrollbar only.
basVertical - Vertical scrollbar only
basBoth - Both
This property can be set at run time and at design time.
Debug.Show
OpenW 100
Form(100).ScrollBars = basBoth
Do
Sleep
Until Me Is Nothing
Sub Form_HScrolling(index%)
Trace Me.HScTrack
EndSub
Sub Form_HScroll(index%)
Trace Me.HScPos
EndSub
Sub Form_VScrolling(index%)
Trace Me.VScTrack
EndSub
Sub Form_VScroll(index%)
Trace Me.VScPos
EndSub
Form, Scrollbars, VScMax, VScMin, VScPos, VScPage, VScStep, VScTrack, HScMax, HScMin, HScPos, HScPage, HScStep, HScTrack
{Created by Sjouke Hamstra; Last updated: 09/10/2014 by James Gaite}