C# richtextbox 自动滚动到最后 光标到最后 自动显示最后一行

     private void richTextBox1_TextChanged(object sender, EventArgs e)
        {
            richTextBox1.SelectionStart = richTextBox1.TextLength;

            // Scrolls the contents of the control to the current caret position.
            richTextBox1.ScrollToCaret(); //Caret意思:脱字符号;插入符号; (^)

        }

 

posted @ 2018-04-20 16:34  都是城市惹的祸  阅读(1460)  评论(0)    收藏  举报