By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

Detecting Windows Scrollbar End Position...!

P: n/a
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.

Jun 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"batista" wrote:
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.

Jun 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.