Solved

Dual List Box Scrolling

Posted on 2004-08-28
4
209 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change vba from autofit to 13.5 width? 4 29
Access query that references subform 5 47
Copy a row 12 64
How to read File Date Created using VB6 8 52
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

860 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