首页
软件开发
登录
6mi
u
盘
搜
搜 索
软件开发
关于ListBox一次性删除多个选项
关于ListBox一次性删除多个选项
xiaoxiao
2024-04-12
121
倒着删,不会出错
for (int i = this.listBox1.SelectedIndices.Count - 1; i >= 0; i--) { int currentIndex = this.listBox1.SelectedIndices[i]; listBox1.Items.RemoveAt(currentIndex); } 相关资源:ListBox删除多个选择项目示例
转载请注明原文地址: https://yun.8miu.com/read-125161.html
最新回复
(
0
)