C#中的TextBox或RichTextBox自动滚动到最底端末尾

2015-04-06 01:05:27  访问(2642) 赞(0) 踩(0)

private void rtbLog_TextChanged(object sender, EventArgs e)
        {
            rtbLog.SelectionStart = rtbLog.Text.Length; //Set the current caret position at the end
            rtbLog.ScrollToCaret(); //Now scroll it automatically
        }


标签:C#    TextBox    RichTextBox    自动滚动    行末尾 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)
 
  ┈全部┈  
 
(显示默认分类)