private void button1_Click(object sender, EventArgs e)
{
if (listBox1.SelectedIndex >= 0) //将左列表框中选中项移到右列表框中
{
listBox2.Items.Add(listBox1.SelectedItem);
listBox1.Items.Remove(listBox1.SelectedIndex);
}
enbutton(); //调用enbutton()方法
}
这里的Remove函数在窗体中没起到作用,不知道是由于什么原因,求各位大神解答啊!!!
![](/img/2014/04/01/102231114.gif)
------解决方案--------------------
别的地方的问题,仔细检查一下别的地方是否重新加回去了或者有状态保存恢复的问题
------解决方案--------------------
C#为啥不去.net专区问