C# 中 listBox1.SelectedIndex!=

来源:学生学帮网 编辑:学帮网 时间:2024/05/24 14:53:15

C# 中 listBox1.SelectedIndex!=

这里是表示什么也没有选中,如果选中的话selectedindex就是选中的index,就是序号数字1,2,3...等,你可以在selectindexchanging事件中测试一下,response.write(listBox.selectedindex)下,看看就知道了