分页: 1 / 1

C# richtextbox scroll to the last line

帖子发表于 :周日 1月 03, 2016 6:47 pm
adm1n
代码: 全选 //========richtextbox scroll to the last line //get the focus fo the richtextbox RecRichTextBox.Focus(); //move the focus to the last line RecRichTextBox.Select(RecRichTextBox.TextLength, 0); //scroll to the last line RecRichTextBox.ScrollToCaret(); RecRichTextBox.AppendText(value); } }