1个回答
展开全部
可以的,你用下面的方法添加
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim LVI As New ListViewItem
With LVI
.Text = "文件名"
.SubItems.Add("路径")
.SubItems.Add("大小")
End With
Me.ListView1.Items.Add(LVI)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim LVI As New ListViewItem
With LVI
.Text = "文件名"
.SubItems.Add("路径")
.SubItems.Add("大小")
End With
Me.ListView1.Items.Add(LVI)
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询