Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

Get a faster computer. If you are copying and pasting that amount of data then you may need to rethink what you are doing.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Jun-11 20:09pm    
He he, LOL. Well, a 5. However, I added another solution.
Please see my ***updated*** solution, after [EDIT].
--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.

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

—SA
 
Share this answer
 
v2
Comments
Sander Rossel 6-Jun-11 13:26pm    
Try 10 BackgroundWorkers... Sorry, could not resist ;)
pucx 6-Jun-11 13:27pm    
If I set WordWrap to false ,How can I set textbox to have a Vertical scroll bar.I want to show all the characters in the text box.
Sergey Alexandrovich Kryukov 6-Jun-11 19:50pm    
This is not how WordWrap works. It's the horizontal scroll bar disappears. Also, all characters are always shown via scrolling, regardless of this option. It is ***absolutely*** irrelevant, but effect speed greatly. As I say in my next sentence, it's just wiping garbage under the carpet: you will have a problem when you set the option on again.

There is no a way to accelerate it, face it finally!
WPF can do faster, with a twist (separate rendering thread), but it is also generally faster.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900