vb.net中怎样把listbox1中选中的内容增加到listbox2中
请教各位:中怎样把listbox1中选中的内容增加到listbox2中
2018-09-13 20:35
程序代码:
'遍历listbox1所有项
For i = 0 To ListBox1.Items.Count - 1
'清空listbox2
ListBox2.Items.Clear()
'向listbox2添加对应的listbox1 的内容
ListBox2.Items.Add(ListBox1.Items(i).ToString)
Next
2018-09-17 12:31
2018-09-17 12:31
程序代码:
For Each strCopy As String In listbox1.Items
listbox2.Items.Add(strCopy)
Next
2018-09-17 13:10
2018-09-17 23:03
2018-09-19 16:46
2018-09-19 19:09