Solved

Dual List Box Scrolling

Posted on 2004-08-28
4
193 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
Comment Utility
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
Comment Utility
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
Comment Utility
THANKS!!! :D
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
You're welcomed ;)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to delete range 4 54
Best way to parse out a json string in VB6? 10 70
Copy a row 12 52
How to Add / Edit Windows Menu 4 23
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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now