R
RonT
I have a richTextBox that is receiving lots of data over a serial port. The
problem is that the display of the text gets slower and slower as more and
more text is added (using .AppendText). Is there a way to limit the text
box to some fixed number of lines (or characters) of text such that the
first text in would automatically get dropped from the text box when the
limit is reached? I've tried using SelectionStart combined with
SelectionLength to select and cut the first line of text when the limit is
reached, but that gets the vertical scroll bar bouncing up and down as the
code bounces between adding new text and deleting old text. This results in
even worse performance of the text box.
Any thoughts or suggestions?
Thanks,
Ron
problem is that the display of the text gets slower and slower as more and
more text is added (using .AppendText). Is there a way to limit the text
box to some fixed number of lines (or characters) of text such that the
first text in would automatically get dropped from the text box when the
limit is reached? I've tried using SelectionStart combined with
SelectionLength to select and cut the first line of text when the limit is
reached, but that gets the vertical scroll bar bouncing up and down as the
code bounces between adding new text and deleting old text. This results in
even worse performance of the text box.
Any thoughts or suggestions?
Thanks,
Ron