你好,
建议你使用listbox,非常简单。用ListBox.Items.RemoveAt()可以实现你想要的。
Dim i As Integer = 2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ListBox1.Items.RemoveAt(i) '删除第i行的内容
End Sub
Best regards
Liliane Teng [MSFT]
MSDN Community Support |
Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.