title: multiple remove checkedlistbox items
body: <p>Hi on this site I found how to delete multiple checkedbox objects in a <code>checklistbox</code><br>
  <a href="https://stackoverflow.com/questions/14590726/how-to-delete-multiple-checked-items-from-checkedlistbox">How to delete multiple checked items from CheckedListBox?</a></p>
  
  <p>But it's not working for me.<br>
  My previous partner who handled this project before I did saved something in Global.answer class.  I have tried to modify that script like this:</p>
  
  <pre><code>for (int i = checkedListBoxAnswers.Items.Count - 1; i &gt;= 0; i--) {
      if (checkedListBoxAnswers.GetItemCheckState(i) == CheckState.Checked) 
      {
          Global.answers.RemoveAt(checkedListBoxAnswers.SelectedIndex);
      }
  }
  </code></pre>
  
  <p>It can delete one checkbox correctly, but when I check for two or more checkboxes, it goes wrong...
  I wonder how to do it correctly.</p>
  
  <p>this is my delete button</p>
  
  <pre><code>private void buttonDelete_Click(object sender, EventArgs e)
      {
          if (checkedListBoxAnswers.SelectedIndices.Count &lt; 1)
          {
              MessageBox.Show(this, "Please select answer to be deleted");
          }
          else
          {
              for (int i = checkedListBoxAnswers.Items.Count - 1; i &gt;= 0; i--)
              {
                  if (checkedListBoxAnswers.GetItemCheckState(i) == CheckState.Checked)
                  {
                      Global.answers.RemoveAt(checkedListBoxAnswers.SelectedIndex);
                  }
              }
              updateCheckListBoxAnswers();
          }
      }
  </code></pre>