private void textBox1_TextChanged(object sender,EventArgs e)
{
textBox1.SelectionStart = textBox1.Text.Length - 1;
textBox1.ScrollToCaret();//将控件内容滚动到当前插入符号位置
}
private void textBox1_TextChanged(object sender,EventArgs e)
{
textBox1.SelectionStart = textBox1.Text.Length - 1;
textBox1.ScrollToCaret();//将控件内容滚动到当前插入符号位置
}
本文标题:C#textbox始终显示最下面新添加的信息
本文链接:https://www.haomeiwen.com/subject/exbykktx.html
网友评论