vb.net中怎样把listbox1中选中的内容增加到listbox2中
请教各位:中怎样把listbox1中选中的内容增加到listbox2中
程序代码:
'遍历listbox1所有项
For i = 0 To ListBox1.Items.Count - 1
'清空listbox2
ListBox2.Items.Clear()
'向listbox2添加对应的listbox1 的内容
ListBox2.Items.Add(ListBox1.Items(i).ToString)
Next







