|
-
Nov 16th, 2000, 10:47 AM
#1
Thread Starter
New Member
Is there a way to scroll 2 listboxes at the same time to keep the items aligned? The listboxes will always have the same number of items. For example, when listbox1 is scrolled, listbox2 scrolls along with it and vice-versa. Thanks for your help!
-Gabe
-
Nov 16th, 2000, 10:53 AM
#2
Fanatic Member
Basically you could set the scrollbar.value of textbox2 to the same value of the scrollbar.value of textbox1 when the mouseover occurs.
-
Nov 16th, 2000, 02:27 PM
#3
Thread Starter
New Member
Listboxes don't have a scroll property, just a scroll event. (or do they?) None that I can find anyway... Would this be an API issue?
-
Nov 16th, 2000, 02:50 PM
#4
Code:
Private Sub List1_Click()
List2.ListIndex = List1.ListIndex
End Sub
Private Sub List2_Click()
List1.ListIndex = List2.ListIndex
End Sub
-
Nov 16th, 2000, 02:59 PM
#5
Thread Starter
New Member
Thanks for the replies. I am already using the index number to keep corresponding items selected between the two listboxes. However, I would like to keep the selected items aligned as well so when the user scrolls in one listbox the corresponding selected item the other will scroll and remain horizontially aligned. In simpler terms, when one listbox scrolls, the other scrolls with it. Thanks again for any help.
-
Nov 16th, 2000, 08:23 PM
#6
_______
<?>
this is all you need...
Code:
Private Sub list1_scroll()
List2.TopIndex = List1.TopIndex
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|