TextBox滑动条保持在最后一行

private void TextBox_TextChanged(object sender, System.EventArgs e)  
{  
    this.TextBox.SelectionStart = this.TextBox.Text.Length;  
    this.TextBox.SelectionLength = 0;  
    this.TextBox.ScrollToCaret();  
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.

 

作者:꧁执笔小白꧂