scrollbars and listboxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennijr
    New Member
    • May 2007
    • 17

    #1

    scrollbars and listboxes

    does anyone know of a way to control a listboxes scollbar with annother scroll bar?

    what im trying to do is make it so that by using a scroll bar i create, i can scroll up and down on more than one list at a time, so that they move at the same pace and stay inline with eachother
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by dennijr
    does anyone know of a way to control a listboxes scollbar with annother scroll bar?
    Assuming VB6 (I'm not familiar with later versions) it's very simple...
    [CODE=vb]Private Sub List2_Scroll()
    List1.TopIndex = List2.TopIndex
    End Sub[/CODE]

    Comment

    • dennijr
      New Member
      • May 2007
      • 17

      #3
      wow, no kidding lol, does exactly wat i wanted it to ...

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by dennijr
        wow, no kidding lol, does exactly wat i wanted it to ...
        Hm... almost two months. You must be a really slow worker. :)

        Glad we could help out.

        Comment

        Working...