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

scrollbars and listboxes

P: 17
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
Sep 5 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
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...
Expand|Select|Wrap|Line Numbers
  1. Private Sub List2_Scroll()
  2.   List1.TopIndex = List2.TopIndex
  3. End Sub
Sep 6 '07 #2

P: 17
wow, no kidding lol, does exactly wat i wanted it to ...
Oct 30 '07 #3

Expert 5K+
P: 8,434
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.
Oct 30 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.