更新时间:2023-12-03 17:06:34
试试这个
try this
RichTextBox1.Select(1, RichTextBox1.GetFirstCharIndexFromLine(1))' Give your line number
RichTextBox1.SelectedText = ""
>
RichTextBox1.Lines = RichTextBox1.Lines.Take(RichTextBox1.Lines.Count - 1).ToArray
RichTextBox1.Lines = RichTextBox1.Lines.Take(RichTextBox1.Lines.Count - 1).ToArray