Split the
TextBox
's
Text
property using the
String.Split[
^] method, that is:
string[] sep = new string[] {"\r\n"};
string[] lines = textBox.Text.Split(sep, StringSplitOptions.RemoveEmptyEntries);
you get an array of
string
s, each one corresponding to a different line.