本文介绍了在VB6.0中使用单个滚动条同步滚动两个网格(sheridan网格)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有两个大小相同的Sheridan网格.
第一个网格具有水平滚动条以滚动列.
第二个网格没有滚动条.
现在的问题是,当我滚动第一个网格的滚动条时,我希望第二个网格的列也滚动
同时.
您能帮我用单个滚动条同时滚动两个网格吗?
我使用了名为Scroll_After()的滚动事件:
There are two sheridan grids of same size.
First grid has horizontal scrollbar to scroll the columns.
Second grid has no scroll bar.
Now the problem is that when i scroll the scroll bar of first grid ,i want the columns of the second grid also to scroll
simultaneously.
Can you please help me out how do both grids scroll simultaneously using single scroll bar.
I have used scroll event called Scroll_After():
Private Grid1_ScrollAfter()
Grid2.LeftCol = Grid1.LeftCol
End Sub
但是仍然看不到Grid2与Grid1一起滚动.
But still am not able to see Grid2 scrolling along with Grid1.
推荐答案
这篇关于在VB6.0中使用单个滚动条同步滚动两个网格(sheridan网格)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!