我是 vb.net 的新手。希望了解如何将项目添加到列表中。目前,它只添加了一项。我需要它来保存许多项目,并且必须能够在另一个文本框中显示所有项目。请帮忙!
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim patients As List(Of String) = New List(Of String)
patients.Add(TextBox1.Text)
TextBox2.Text = patients.Count
End Sub
End Class