C#中的垂直滚动条 [英] Vertical Scroll bar in C#

查看:370
本文介绍了C#中的垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好书呆子! :D
(开个玩笑)我有点问题.我想以某种方式自定义垂直滚动条,这总是使我在datagridview底部有一些可用空间.例如,假设您有一个datagridview,而我想始终在底部有一个像边距这样的空间,例如100px.我该怎么办?

实际上,我想要在datagridview的最后一行和工作表窗口的底部之间有一些额外的空间.(我希望它始终固定.)

Hello nerds ! :D
(just kidding) I have a little problem. I want to customize vertical scroll bar somehow which always i have some free space in datagridview bottom. For example suppose you have a datagridview and i want to always have a space like margin in bottom such as 100px. How can i do that?

Actually i want some extra space between the datagridview last row and the bottom of the sheet window.(I want it fix and always).

推荐答案

我会搜索文章在Code Project上查看是否有人以您想要的方式扩展了该类,并查看是否可以找到您的解决方案,或者在后续步骤中找到了一些深入的信息.
I would search the articles on Code Project to see if anyone else has extended this class in the way you want to, and see if you can find your solution, or find some in depth info on your next steps.


您可能找不到它,因为人们永远都不需要这样做.

这种行为可能会破坏正常的滚动条操作,实际上这对控件的行为实际上比您想象的要复杂(例如,考虑TreeView及其扩展节点和收缩节点).

我什至没有在谈论用户中可能出现的混乱.

似乎只是您想要的;实际上,您确实希望保留此重要行为.

此外,我认为您可以利用自己的时间来做更多有价值的事情.

祝你好运,
—SA
You probably could not find it because people don''t need to do it, ever.

Such behavior could disrupt normal scroll bar operation, which is in fact way more complex and critical to the behavior of the control than you might think (for example, think about TreeView with its expanding and shrinking nodes).

I''m not even talking about possible confusion in the users.

It only seems that you want it; in fact, you really want to have this important behavior intact.

Besides, I think you can use your time for much more valuable things.

Good luck,
—SA


这篇关于C#中的垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆