请教, 有没有可能让一个滚动条控制所有 listbox?
放一个vscrollbar, 控制listbox 1 2 3 让他们同步滚动, 该怎么实现? 求大神指点
[此贴子已经被作者于2018-5-28 13:31编辑过]
Private Sub Form_Load() For I = 0 To 119 List1.AddItem I + 1 List2.AddItem I + 1 List3.AddItem I + 1 Next I VScroll1.Max = 120 VScroll1.Min = 1 End Sub Private Sub VScroll1_Change() Dim APST As Single APST = VScroll1.Value List1.ListIndex = Int(List1.ListCount * APST / 100) - 1 List2.ListIndex = Int(List2.ListCount * APST / 100) - 1 List3.ListIndex = Int(List3.ListCount * APST / 100) - 1 End Sub
[此贴子已经被作者于2018-5-29 12:17编辑过]