Slow RichTextBox property

  • Thread starter Thread starter James dean
  • Start date Start date
J

James dean

I was using the RichTextBox property called SelectionStart to move
through the text one character at a time to check to see if one
character is different from the next. The problem is this property is
very slow and takes alot of processing time. Is there a more efficient
method i could use. I used also the select method but it is also slow so
i need something different.....any ideas
 
James,

I don't know if your it is slow, however the first thing I would do was copy
the text to a string and than use that to find what I am searching for (with
a for index) and with char not with string as search item because that char
goes normally quicker.

The index will stay the same.

I hope this helps,

Cor
 
Back
Top