Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RichTextBox horizontal scroll not working

I have a single line readOnly RichTextBox with wordWrap disabled, and I add programmatically one single very long line of text.

However the horizontal scrollBar does not apear, even if I set ScrollBars to ForcedHorizontal.

How can I fix this?

I can navigate through the whole line if i use the arrow keys on the keyboard, but this only makes things worse.

like image 943
Qsiris Avatar asked Aug 17 '12 12:08

Qsiris


2 Answers

Try to solve it with

    Multiline = True
    WordWrap = False

Change this properties to allow the multiline feature and also allow Horizontal scrolling

like image 178
TVC Avatar answered Oct 09 '22 01:10

TVC


I can reproduce this behaviour with

MultiLine = false

If I change this property to True the scrollbar appears as expected

like image 38
Steve Avatar answered Oct 08 '22 23:10

Steve