HScrollBar

Craig

Well-known member
Joined
Oct 15, 2005
Messages
110
Location
United Kingdom
Programming Experience
Beginner
Could anyone give me some info on using the HScrollBar, I need it placed in a panel which will then scroll left/right to reveal images when it is used.

Thanks!
 
Thanks JohnH :)

This is what I use for anyone who is interested;

VB.NET:
    Private Sub HScrollBar1_ValueChanged(ByVal sender As Object, ByVal e As _
 System.EventArgs) Handles HScrollBar1.ValueChanged
        Panel2.Left = -HScrollBar1.Value * ((Panel2.Width - Me.Width) / 100)
    End Sub
 
Oh dear... I just found something that makes it ridiculously easy, I could have just shrunk the panel to the size of the form, and set AutoScroll to True!!
 
Back
Top