日期:2014-05-19  浏览次数:20819 次

Listbox查询是否重复?
if(value在ListBox中有)  

else
  .......

------解决方案--------------------
if(ListBox.Items.Contains(value))
{
...
}
------解决方案--------------------
顶什么,1楼的办法不行吗???
------解决方案--------------------
if(ListBox1.Items.Contains(ListBox1.Items.FindByValue( "value ")))
//exist
else
//not exist