VB Datagrid禁用自动滚动焦点选定的列
这里有点新,但需要帮助,一位好朋友推荐了这个网站。
我的问题是我在 Visual Basic 中有一个数据网格,它工作正常,但是当列延伸超过窗口宽度时,我需要一个滚动条。这就是问题出现的地方。当单击第四列之后的列时,滚动条将移动以使其获得焦点。由于这里有复选框,因此它们会被不断单击,当滚动条移动时,按钮不会被选中,必须再次单击。
我希望有一种方法可以禁用此自动焦点,这样单击列就不会导致滚动条移动。
任何帮助将不胜感激。 ^__^
Kinda new here but needed help and a good friend suggested this site.
My problem is I have a data grid in Visual Basic, it works fine but as the columns extend past the width of the window I needed a scroll bar. This is where the problem arose. When a column past the 4th is clicked the scrollbar will shift to give it focus. As there are check boxes here they are constantly clicked and when they are the scroll bar shifts but the button isn't checked and must be clicked again.
I was hoping there was a way to disable this Auto focus so clicking a column will not cause the scrollbar to move.
Any help would be greatly appreciated. ^__^
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
vb 中没有真正的自动滚动,其中一种子方法是通过检查屏幕上的另一个单元格来使其跳转,然后默认返回到显示的具有跳转外观的单元格。
There is no real autoscroll in vb, one of the sub method was causing it to jump by checking another cell off the screen then defaulting back to the one shown which had the appearance of a jump.