在Winforms中更改滚动条的大小 [英] Change the size of scrollbar in winforms
问题描述
我想在winforms中更改滚动条的实际bar/thumb部分的大小,但是我找不到实现此目的的方法.无论滚动多少,拇指大约是实际滚动区域的1/10.我必须向下滚动1行还是1000行都一样.我希望它的大小根据滚动量来调整,或者至少要使其达到滚动区大小的50%左右.
I want to change the size of the actual bar/thumb part of the scrollbar in winforms but I can't find a way to do this. The thumb is about 1/10 of the actual scroll area regardless of how much there is to scroll. It's the same whether I have to scroll down 1 line or 1000 line. I want the size of it to adjust depending on how much there is to scroll or at the very least make it something like 50% the size of the scroll area.
推荐答案
实际上我知道了. this.vScrollBar1.LargeChange = this.vScrollBar1.Maximum / 2;
将拇指更改为曲目长度的一半.
Actually I got it. this.vScrollBar1.LargeChange = this.vScrollBar1.Maximum / 2;
changes the thumb to half the track length.
这篇关于在Winforms中更改滚动条的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!