Question How to go to specific line in a RTB and delete all lines above

t3kizzleee

New member
Joined
Jan 13, 2010
Messages
4
Programming Experience
Beginner
Hello,

I have a RichTextBox.

I want to input an integer and the RichTextBox to go to that line and delete all lines above it.

For example, if I have 100 lines in the RTB, and I specify "25" as the integer, I want lines 1-25 deleted and for the RTB to keep 26-100.

Any help is appreciated, thank you.
 
Back
Top