Is a RichTextBox insertion limited to 32k characters?

I have a WinForms application with RichTextBox.
If I copy 100k characters from Notepad ++ text and try to use CTRL + V in a RichTextBox, only 32,200 characters are inserted.
Please note that I can type RichTextBox, so the problem is not MaxLength .
What for? How can I solve it?

+4
source share
2 answers

No reprogramming, I just put 1.4 million characters from Notepad into RTB. You will need to consider another source of the problem, pebkac or Notepad ++. Check if the syntax coloring is preserved when pasted into RTB. In this case, the limitation is limited by the amount of RTF that Scintilla wants to generate. Which is true, the programmer of Q + A sites does not allow so much text in the message.

+3
source

From MSDN - property RichTextBox.MaxLength

 RichTextbox1.Length = Int32.MaxValue; 

That should give you 2,147,483,647 characters

0
source

All Articles