当使用richtext 控件时,如果一次写入的文本内容过大,光标通常会被自动设置在最后,但是当前窗口之显示开始的位置,没有设置到文本的末尾。
解决:
设置text的selectionStart
Log.SelectionStart = Log.Text.Length - 1;
//Selectionstart: set or get the starting point of the text selected in the text box.
Log.ScrollToCaret(); //Scroll the content of the control to the current caret position.