只需要在textBox的文本改变事件里面添加2个代码就行了
private void textBoxMes_TextChanged(object sender, EventArgs e)
{textBoxMes.SelectionStart = textBoxMes.Text.Length; //设置文本起点位置
textBoxMes.ScrollToCaret(); //滚动到当前插入位置
}
只需要在textBox的文本改变事件里面添加2个代码就行了
private void textBoxMes_TextChanged(object sender, EventArgs e)
{}