I want to set the textbox’s height for example to 50, and no more, and will not be scrolling in the textbox.
I tried to set the property ScrollBars to RichTextBoxScrollBars.None and it does not help, indeed did not display the scroll bar, but there is a scrolling.
There are two possible solutions if selecting the text is not important.
One option is to disable the rich text box, it will prevent scrolling and selecting text, but it will also grey out the text and background.
The second option is this class that will prevent the cursor from moving, thus preventing scrolling selecting text, but does not grey out the background.
I tested this with .Net 2.0