C# Textbox 自动换行

方法1

使用textboxAppendText方法

方法2

textBox.ScrollToCaret();
this.textBox.Focus();//获取焦点
this.textBox.Select(this.textBox.TextLength,0);//光标定位到文本最后
this.textBox.ScrollToCaret();//滚动到光标处
posted @ 2019-04-29 19:25  Velscode  阅读(5366)  评论(0编辑  收藏  举报