在C#中,如何加快文本框的复制和粘贴速度 [英] In C #,how to accelerate the speed of copy and paste for textbox

查看:113
本文介绍了在C#中,如何加快文本框的复制和粘贴速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当复制的字符数很多时,例如数万个字符时,复制和粘贴的速度很慢,解决方案中是否可以加快复制和粘贴的速度?谢谢.

When the copy number of characters is a lot, such as when tens of thousands, the speed of copying and pasting are very slow.Is there a way to accelerate the speed of copying and pasting in the solutions? Thank you.

推荐答案

获得更快的计算机.如果要复制和粘贴大量数据,则可能需要重新考虑您在做什么.
Get a faster computer. If you are copying and pasting that amount of data then you may need to rethink what you are doing.


我注意到将WordWrap设置为false可以使其更快.但是,在文本框填充文本后打开WordWrap,该操作将变慢!

可能没有其他方法可以加速它.


另一种方法是切换到WPF.通常更快;由于具有单独的渲染线程,因此渲染的文本将更快出现.

—SA
I noticed that setting WordWrap to false makes it much faster. However, you turn WordWrap on after the text box is filled with text, that operation becomes slow!

Probably, there are no other ways you can accelerate it.


Another way is switching to WPF. It''s generally faster; and the rendered text will appear sooner, due to a separate rendering thread.

—SA


这篇关于在C#中,如何加快文本框的复制和粘贴速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆