示例#1
0
 private void TxtShell_TextChanged(object sender, EventArgs e)
 {
     TxtShell.SelectionStart = TxtShell.Text.Length; //Set the current caret position at the end
     TxtShell.ScrollToEnd();                         //Now scroll it automatically
 }