Search code examples
c#winformsscrollbar

Change the size of scrollbar in winforms


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.


Solution

  • Actually I got it. this.vScrollBar1.LargeChange = this.vScrollBar1.Maximum / 2; changes the thumb to half the track length.