vb中,怎么把Listview中的选择的多行,插入到另外一个listview中。
1个回答
展开全部
Option Explicit
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 10
List1.AddItem LTrim(i)
Next i
End Sub
Private Sub List1_Click()Dim i
List2.Clear
For i = 0 To List1.ListCount - 1
If List1.Selected(i) Then List2.AddItem List1.List(i)
Next i
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 10
List1.AddItem LTrim(i)
Next i
End Sub
Private Sub List1_Click()Dim i
List2.Clear
For i = 0 To List1.ListCount - 1
If List1.Selected(i) Then List2.AddItem List1.List(i)
Next i
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询