How do i know whether I have pressed the top scroll bar button or the buttom scroll bar button in a Scroll bar Control. Please Help.
Printable View
How do i know whether I have pressed the top scroll bar button or the buttom scroll bar button in a Scroll bar Control. Please Help.
trap the Value property in the VScroll-Change-Event.
it will tell you the new position between vscroll.min and vscroll.max.
private Sub VScroll1_Change()
static iLastVal as Integer
If VScroll1.Value >= iLastVal then
MsgBox "down"
else
MsgBox "up"
End If
iLastVal = VScroll1.Value
End Sub