Solved

Dual List Box Scrolling

Posted on 2004-08-28
4
217 Views
Last Modified: 2010-05-02
I've got two list boxes - List1 and List2

When either List1 or List2 is scrolled I want the other to mirror its scroll movement, so that both lists show the same point of view on their own lists.

Cheers,

`Andy
0
Comment
Question by:xizor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11920508
Private Sub List1_Click()
    List2.ListIndex = List1.ListIndex
End Sub

Private Sub List2_Click()
    List1.ListIndex = List2.ListIndex
End Sub
0
 
LVL 8

Accepted Solution

by:
mladenovicz earned 250 total points
ID: 11920522
Or if you want to track scrolling

Private Sub List1_Scroll()
    List2.TopIndex = List1.TopIndex
End Sub

Private Sub List2_Scroll()
    List1.TopIndex = List2.TopIndex
End Sub
0
 
LVL 2

Author Comment

by:xizor
ID: 11920536
THANKS!!! :D
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11920547
You're welcomed ;)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question