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

前端 未结 7 993
天涯浪人
天涯浪人 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:08

    Have a look at the LockWindowUpdate function, don't forget to unlock once you've added the text to the textbox.

    http://msdn.microsoft.com/en-us/library/dd145034%28v=vs.85%29.aspx

提交回复
热议问题