|
-
May 15th, 2000, 04:30 PM
#1
Thread Starter
New Member
Can anybody help me?
I am trying to synchronise scrollbars in listboxes, i.e if one scrolls, the others should also scroll.
The problem is that Listboxes do not have a scrollbar property/I don't know
There is an event Scroll, but it does not return a value...
PLEASE HELP!
-
May 15th, 2000, 04:38 PM
#2
-
May 15th, 2000, 04:43 PM
#3
Thread Starter
New Member
Thanks for the reply, but that is my problem:
Here is what happens:
Three lists grow at exactly the same pace.
All get scroll bars at exactly the same time.
Now, when I scroll in one list, I want the other two to scroll automatically.
Any ideas?
-
May 15th, 2000, 04:46 PM
#4
-
May 15th, 2000, 04:54 PM
#5
Fanatic Member
Can't seem to get the list boxs to scroll together, but this works if the user is using the cursor keys or the page up/down keys.
Some API guru will probably be able to tell you how to do it.
Code:
Option Explicit
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 100
List1.AddItem i
List2.AddItem i
Next i
List1.ListIndex = 0
List2.ListIndex = 0
End Sub
Private Sub List1_Click()
List2.ListIndex = List1.ListIndex
End Sub
Private Sub List2_Click()
List1.ListIndex = List2.ListIndex
End Sub
Iain, thats with an i by the way!
-
May 15th, 2000, 05:07 PM
#6
Thread Starter
New Member
Cheers for the attempt...
Ill let you know if I solve it...
-
May 15th, 2000, 05:50 PM
#7
Frenzied Member
Why do you need to use 3 syncronised list boxes?
Can't you use a listview with 3 columns?
-
May 15th, 2000, 06:55 PM
#8
Thread Starter
New Member
Cheers
I'll try it now...
-
May 15th, 2000, 07:44 PM
#9
Addicted Member
I think you can use the scroll event. Using something like:
Code:
Private Sub listbox1_Scroll()
lisbox2.TopIndex = lisbox1.TopIndex 'or something
End Sub
[Edited by pardede on 05-16-2000 at 02:45 PM]
-
May 15th, 2000, 07:51 PM
#10
Fanatic Member
Bollox, what a simple soultion. I stand humbled before Pardede's wisdom
Iain, thats with an i by the way!
-
May 15th, 2000, 08:26 PM
#11
Thread Starter
New Member
-
May 16th, 2000, 01:29 PM
#12
Addicted Member
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
|