//自动滚到最新出现的一行
private void txtData_TextChanged(object sender, EventArgs e)
{
txtData.SelectionStart = txtData.Text.Length;
txtData.ScrollToCaret();
}
C# 1.textBox实时更新到最新行
最新推荐文章于 2023-03-15 22:06:48 发布
//自动滚到最新出现的一行
private void txtData_TextChanged(object sender, EventArgs e)
{
txtData.SelectionStart = txtData.Text.Length;
txtData.ScrollToCaret();
}