listBox??? 第一句改成:listBox2.Items.Add(listBox1.SelectedItem.Text);第一句改成:listBox1.Items.Remove(listBox1.SelectedItem.Text); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //我试了,好用! private void button1_Click(object sender, System.EventArgs e){ listBox2.Items.Add(listBox1.SelectedItem); listBox1.Items.Remove(listBox1.SelectedItem);} :) 我在listBox的SelectedIndexChanged事件中listBox2.Items.Add(listBox1.SelectedItem.ToString());可以把listBox1选中的一项在listBox2中显示Refresh方法也不行 我想问一下你是在windows窗体中还是在web窗体中 同意上面的上面这位兄弟的说法在另一个button控件的click时间中是可以实现的 不行呀,我是在窗体中作的提示An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dllAdditional information: Can't modify the Items collection when the DataSource property is set. webbrowser控件获取如下js返回的数据 socket怎么操作ftp 网址调用 wcf,如何解决重载问题??? 求时间控件 小弟又有问题了,C#大哥们指教下,谢谢 RICHTEXTBOX 问题 多列子查询少了个','号 c#的WEB开发问题? [菜菜鸟提问].net程序开发员的前景 怎样得到DataTable中除了Deleted的Change? 什么时候使用Override重写,什么时候采用事件处理程序!~!!有效答复者可以从我的服务器下载7CD的vs.net2003中文版! 在线等待回答,幼稚问题
//我试了,好用!
private void button1_Click(object sender, System.EventArgs e)
{
listBox2.Items.Add(listBox1.SelectedItem);
listBox1.Items.Remove(listBox1.SelectedItem);
} :)
listBox2.Items.Add(listBox1.SelectedItem.ToString());
可以把listBox1选中的一项在listBox2中显示Refresh方法也不行
在另一个button控件的click时间中是可以实现的
提示
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dllAdditional information: Can't modify the Items collection when the DataSource property is set.