// 首先,设置TextBox
//1)显示滚动条(垂直)
textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
//2)允许多行显示
this.textBox1.Multiline = true;
//第一种方法:利用StringBuilder
StringBuilder sb = new StringBuilder();
sb.AppendLine("第一行");
sb.AppendLine("第二行");
sb.AppendLine("第三行");
textBox1.Text = sb.ToString();
// 第二种方法:直接附加
textBox1.AppendText("第四行" + Environment.NewLine);
textBox1.AppendText("第五行" + Environment.NewLine);
温馨提示:答案为网友推荐,仅供参考