int contents = richTextBox1.Lines.Length;
label1.text= richTextBox1.Lines[contents - 1];
string LastLineText = richTextBox1.Lines[richTextBox1.Lines.Count - 1]; Label1.Text = LastLineText;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)