如何把列表框中所有项一次添加到另一个列表框中呢?
在练习列表框,请教高手。先谢谢了。
2009-11-11 15:26
foreach(Control ctrl in this.listView1.Controls)
{
this.listView2.Controls.Add(ctrl);
}这个行吗

2009-11-11 18:55
2009-11-11 21:32
2009-11-11 21:50
foreach(Item i in listBox1.Items)
{
listBox2.Items.Add(i);
}listBox里面包含的是每一个Item

2009-11-12 08:55
2009-11-13 00:38
2009-11-13 00:44
2009-11-13 08:46
2009-11-13 22:01
2009-11-13 23:30