Click here to Skip to main content
14,329,910 members
Rate this:
Please Sign up or sign in to vote.
See more:
How do I enlarge the size of richtextbox's Scrollbars

I tried changed this code..
            // rtbBypassInfo
               this.rtbBypassInfo.Location = new System.Drawing.Point(11, 78);
               this.rtbBypassInfo.Name = "rtbBypassInfo";
               this.rtbBypassInfo.Size = new System.Drawing.Size(705, 470);
               this.rtbBypassInfo.TabIndex = 20;
               this.rtbBypassInfo.Text = "";
this point ->  this.rtbBypassInfo.Scrollbars.Size = new ......

I wanna enlarge the width of Scrollbar in RichTextbox....

please help! thx!!!

What I have tried:

nothing.... ㅠ_ㅠ somebody help me...
Updated 18-Nov-18 23:45pm
Aydin Homay 19-Nov-18 3:18am
May I ask why you want to resize the scrollbar and what you would like to achieve by this?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I don't think this is possible in C#, so you would need to do some interop, see example here: c# - Winforms - Adjust width of vertical scrollbar on CheckedListBox - Stack Overflow[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100