vb中如何设置才能使listbox的垂直滚动条同时滚动? 20
有四个listbox,假设分别为1,2,3,4,他们的listcount是一样的。当list项超过时,会有自动的垂直滚动条。想拖动任意一个滚动条,其余三个的滚动条也同时滚...
有四个listbox,假设分别为1,2,3,4,他们的listcount是一样的。当list项超过时,会有自动的垂直滚动条。想拖动任意一个滚动条,其余三个的滚动条也同时滚动,具体如何实现?求高人给出代码…
展开
展开全部
Private Sub List1_Scrol1()
'List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol2()
List1.TopIndex = List1.TopIndex
'List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol3()
List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
'List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol4()
List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
'List4.TopIndex = List1.TopIndex
End Sub
'List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol2()
List1.TopIndex = List1.TopIndex
'List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol3()
List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
'List3.TopIndex = List1.TopIndex
List4.TopIndex = List1.TopIndex
End Sub
Private Sub List1_Scrol4()
List1.TopIndex = List1.TopIndex
List2.TopIndex = List1.TopIndex
List3.TopIndex = List1.TopIndex
'List4.TopIndex = List1.TopIndex
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
大雅新科技有限公司
2024-11-19 广告
2024-11-19 广告
这方面更多更全面的信息其实可以找下大雅新。深圳市大雅新科技有限公司从事KVM延长器,DVI延长器,USB延长器,键盘鼠标延长器,双绞线视频传输器,VGA视频双绞线传输器,VGA延长器,VGA视频延长器,DVI KVM 切换器等,优质供应商,...
点击进入详情页
本回答由大雅新科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询