winform 给文本框加载内容的时候 始终让文本框的滚动条到底(允许显示多行Multiline=True)

  void textBox2_TextChanged(object sender, EventArgs e)
        {
            this.textBox2.SelectionStart = this.textBox2.TextLength;
            this.textBox2.SelectionLength = 0;
            this.textBox2.ScrollToCaret();
        }

 

posted @ 2013-11-19 13:33  JasonGu0  阅读(334)  评论(0编辑  收藏  举报