//设置光标的位置到文本尾 richTextBoxLog.Select(richTextBoxLog.TextLength, 0); //滚动到光标处 richTextBoxLog.ScrollToCaret();