I need to display data (ASCII text) being read from a serial port in a TextBox or on a Label. I'm reading the data from the serial port into a string using a timer. The string contains CR and LF characters. I don't only want to display one string, but as many strings as possible, depending upon the size of the TextBox/Label. If the TextBox/Label is full I want to remove the oldest line. I want the string to be divided only if it contains a CR/LF character or the TextBox/Label is not wide enough. The code also should be as fast as possible.
Any good ideas?