Listbox查询是否重复?
if(value在ListBox中有)
else
.......
[解决办法]
if(ListBox.Items.Contains(value))
{
...
}
[解决办法]
顶什么,1楼的办法不行吗???
[解决办法]
if(ListBox1.Items.Contains(ListBox1.Items.FindByValue( "value ")))
//exist
else
//not exist
发布时间: 2012-02-23 22:01:35 作者: rapoo
Listbox查询是否重复?
if(value在ListBox中有)
else
.......
[解决办法]
if(ListBox.Items.Contains(value))
{
...
}
[解决办法]
顶什么,1楼的办法不行吗???
[解决办法]
if(ListBox1.Items.Contains(ListBox1.Items.FindByValue( "value ")))
//exist
else
//not exist