How do i make a Vertical Scrollbar work for a Form ?

i Tried

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        VScrollBar1.Maximum = (Panel1.Height - Me.Height) + 500
        VScrollBar1.SmallChange = 50
        VScrollBar1.LargeChange = 100
    End Sub

    Private Sub VScroll1_Change()
        Panel1.Top = 0 - VScrollBar1.Value
    End Sub

just as an example, but won't work.. at all :P

or should i use something else than a Panel ?

No help to get here ? :)

Sry for BUMP :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.