访问量: 29009次,访客数: 24491人,浏览量: 1次 
首页  编辑  

ListBox删除选中项

Tags: /C#/界面处理/ListBox、ComboBox/   Date Created: Tue Jun 10 2008 01:17:47 GMT+0000 (Coordinated Universal Time)

for ( int i = listBox1 . SelectedItems . Count - 1 ; i >= 0 ; i -- )

   listBox1 . Items . Remove(listBox1 . SelectedItems[i]);