C#实现textBox滚动条自动滚到最底端
时间:2011-06-16 来源:Leo.Qiu
1、配置textBox的Multiline属性为true;
2、配置textBox的ScrollBars属性为Vertical,实现纵向滚动条;
3、然后如下语句实现自己滚动:
private void textBox_receive_area_TextChanged(object sender, EventArgs e)
{
textBox_receive_area.SelectionStart = textBox_receive_area.Text.Length;
textBox_receive_area.ScrollToCaret();
}
相关阅读 更多 +
排行榜 更多 +






![《小朋友齐打交2复刻版》 v2.14d升级档+未加密补丁[TENOKE]](https://images.phpfans.net/img/f1/20251229/logo_69527f2a9daf81.jpg)



