Detecting Windows Scrollbar End Position...!

  • Thread starter Thread starter batista
  • Start date Start date
B

batista

Hello to all,

I'm using the HScrollBar Control in one of my apps.

Now the problem is

how to detect that when did the scrollbar reached its right end or left
end.?

Please Any Suggestions....

Thanks...
Cheers...

Bye.
 
Maybe the following can help you:

Private Sub HScrollBar1_ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles HScrollBar1.ValueChanged
With HScrollBar1
Debug.WriteLine(.Value)
If .Value = .Minimum Then
' the scrollbar is at the left boudary
Debug.WriteLine("Left")
ElseIf .Value = .Maximum - (.LargeChange - 1) Then
' the scrollbar is at the right boudary
Debug.WriteLine("Right")
End If
End With
End Sub
 
Back
Top