Is there way to speed up displaying a lot of text in a winforms textbox?

前端 未结 7 887
天涯浪人
天涯浪人 2020-12-21 14:32

Is there way to speed up displaying a lot of text in a winforms textbox? My application reads a file (which can be as large as 20MB) and then displays it to a textbox (TextB

相关标签:
7条回答
  • 2020-12-21 15:11

    Having just run into this issue myself, another possible workaround is to use a RichTextBox. Counter-intuitively, considering how much more it can handle compared to a normal TextBox, setting the Text property of a RichTextBox to a very large string is virtually instantaneous.

    0 讨论(0)
提交回复
热议问题