Writing huge amounts of text to a textbox

后端 未结 3 1964
北荒
北荒 2020-12-16 18:58

I am writing a log of lots and lots of formatted text to a textbox in a .net windows form app.

It is slow once the data gets over a few megs. Since I am appending th

3条回答
  •  再見小時候
    2020-12-16 19:49

    Build your String together with a StringBuilder, then convert it to a String using toString(), and assign this to the textbox.

提交回复
热议问题