When everything else fails, check out the stupid things ... did you find that the RichTextBox control is multi-line? Or is it set to single line mode? You might be loading the whole file correctly, but the control only displays the first line, because you said that :)
Check out RichTextBox.Multiline . It is long, but maybe?
I created a sample project with a fixed RichTextBox control, saved all the default values โโ(except for Dock = DockStyle.Fill ), added a simple File-> Open menu and cut your code into the menu handler. The only change I had to make to your code was to change the second LoadFile parameter from RichTextBoxStreamType.PlainText to RichTextBoxStreamType.RichText .
A complex file (links, formatting, graphics, etc.) saved from Word is excellent for me.
Another common problem is that the control is very short. You might think that this fills your client area, but in reality it is just a narrow strip, so you see only one line. Are the size, docking and / or anchor parameters set correctly? Do you see a scroll bar for your document? Is it shorter than you expect?
source share