this.textBox1.Focus();//获取焦点 this.textBox1.Select(this.textBox1.TextLength, 0);//光标定位到文本最后 this.textBox1.ScrollToCaret();//滚动到光标处
c# textBox滚动条一直在最下
最新推荐文章于 2025-06-08 09:33:26 发布
this.textBox1.Focus();//获取焦点 this.textBox1.Select(this.textBox1.TextLength, 0);//光标定位到文本最后 this.textBox1.ScrollToCaret();//滚动到光标处