摘要:
搞了个ListBox删除选择项,开始老是不能把选择项删除干净,剩下几个。后来调试一下原来是ListBox在删除一个选择项之后立即更新,选择项也有变化。结果我想了个这样的方法来删除呵呵。Department_Users是ListBoxint SelectItems = Department_Users.SelectedItems.Count;if (Department_Users.SelectedItems.Count > 0){for (int i = 0; i < SelectItems; i++){Department_Users.Items.Remove(Departmen 阅读全文