在VB中,可以使用 `TextBox` 控件的 `Lines` 屬性結合 `Add` 方法實現類似 Delphi 中 `Memo.Lines.Add()` 的功能。具體代碼如下:
vb
TextBox1.Lines = TextBox1.Lines.Concat(New String() {新行內容}).ToArray()
此方法將新行添加到 `TextBox` 的末尾,效果與 `Memo.Lines.Add()` 類似。
vb
TextBox1.Lines = TextBox1.Lines.Concat(New String() {新行內容}).ToArray()
此方法將新行添加到 `TextBox` 的末尾,效果與 `Memo.Lines.Add()` 類似。