RichTextBox horizontal scroll not working

Qsiris picture Qsiris · Aug 17, 2012 · Viewed 7.9k times · Source

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.

Answer

TVC picture TVC · May 14, 2013

Try to solve it with

    Multiline = True
    WordWrap = False

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