ListView.SelectedIndexCollection numToRemove = lvSet.SelectedIndices;
try
{
int j = 0;
foreach (int i in numToRemove)
{
lvSet.Items.RemoveAt(i - j);
j = j + 1;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
作者“我的地盤”