I have a richtextbox on a form. A network stream keeps on providing it with text. Text is added to the bottom of the textbox and I keep the focus on the bottom line (default is to go back to the top of the textbox when text is added). What I need to do however is cut out text from the TOP of the textbox a certain amount of text once there is a certain amount of text in the control (you get memory overflows after a while).
A) How do I tell how many lines of text are in my richtextbox?
B) How do I trim lines of text from the top of the textbox?
A) How do I tell how many lines of text are in my richtextbox?
B) How do I trim lines of text from the top of the textbox?