K
kelvin.koogan
I'm using a RichTextBox in a protocol analyser I'm developing. However
as the amount of data gets large, e.g. 500000 lines, the control
becomes very slow.
For example if I load in a saved file it can take 30 seconds just to
transfer data from a StringBuilder to the RichTextBox, even with
updates turned off with WM_SETREDRAW.
Also I highlight a line when the users clicks on it and this can be
slow, as can be highlighting all instances of a string match.
Is there any way to make actions like adding text to a RichTextBox or
highlighted portions of text any faster?
TIA,
KK
as the amount of data gets large, e.g. 500000 lines, the control
becomes very slow.
For example if I load in a saved file it can take 30 seconds just to
transfer data from a StringBuilder to the RichTextBox, even with
updates turned off with WM_SETREDRAW.
Also I highlight a line when the users clicks on it and this can be
slow, as can be highlighting all instances of a string match.
Is there any way to make actions like adding text to a RichTextBox or
highlighted portions of text any faster?
TIA,
KK