Retain highlighted color of text after editing
问题 Cannot keep the highlighted effect I set in my RichTextBox on my text after removing content of a line in front of him. No matter how much text I remove from the control it always removes the custom SelectionColor and SelectionBackColor I set to a text already contained in it. Code of my Removal method: private void btnRemove_Click(object sender, EventArgs e) { //Remove selected line from RichTextBox richTextBox1.Text = richTextBox1.Text.Remove(richTextBox1.Text.Length - 1, 1); //Remove all