C# textbox中光标定位到最后一行

使用如下语句即可

            this.textBoxLog.Focus();//获取焦点
            this.textBoxLog.Select(this.textBoxLog.TextLength,0);//光标定位到文本最后
            this.textBoxLog.ScrollToCaret();//滚动到光标处

posted @ 2018-05-03 18:42  Vanish.  阅读(8964)  评论(0编辑  收藏  举报