Re: Read text file to Temp file and apply formating and color chan



Brian Cook wrote:
Sure thing Peter, Here is the code. Do you need me to email you a sample file?

No. As I said in my post, your sample code should auto-generate some relevant data. That way, no one has to have an exact copy of the sample file you are using.

Also, I have asked twice already whether you have tried pre-formatting the text and then assigning the RTF string to the RichTextBox.Rtf property. You haven't answered that question yet. IMHO, that technique is likely to give you the best performance. If nothing else, it will make clear where the performance bottleneck is (assuming you bother to time the individual sections of your initialization, of course).

Please at least answer that question, even if you have no intention of trying the suggestion.

Pete
.