bradyboyy88
Well-known Member
- Joined
- Feb 25, 2015
- Messages
- 562
Hi,
I want to add an event to my frame so that when the scroll reaches the bottom it triggers a event. However, I cant seem to figure out a way to tell if it hit the bottom. My code below doesnt work for either method:
I want to add an event to my frame so that when the scroll reaches the bottom it triggers a event. However, I cant seem to figure out a way to tell if it hit the bottom. My code below doesnt work for either method:
Code:
Private Sub Frame1_Scroll(ByVal ActionX As MSForms.fmScrollAction, ByVal ActionY As MSForms.fmScrollAction, ByVal RequestDx As Single, ByVal RequestDy As Single, ByVal ActualDx As MSForms.ReturnSingle, ByVal ActualDy As MSForms.ReturnSingle)
If Frame1.ScrollHeight = Frame1.ScrollTop Then MsgBox "bottom"
If ActionX = fmScrollActionEnd Then MsgBox "bottom"
End Sub