title: Changing from single select to multiple select in ListBox winform C#
body: <pre><code>if (productListBox.SelectedIndex &gt;= 0)
                  {
                      bool canDelete = true;
                      for (int i = 0; i &lt; bkmNameListBox.Items.Count; i++)
                      {
                          if (((string[])bkmList[i])[1] == _IgnoredBKMID)
                          {
                              canDelete = false;
                          }
                      }
                      if (canDelete)
                      {
                          if (MessageBox.Show("Deleting a product will DELETE ALL debug BKM of this particular product,\r\n Continue?", "Delete Product", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                          {
                              DatabaseAccess.DeleteProduct(productListBox.SelectedItem.ToString());
                              LoadListBox1();
                              bkmNameListBox.Items.Clear();
                          }
                      }
                      else
                      {
                          MessageBox.Show("You cannot delete this product because one if its Debug BKM is in editing", "Access Denied");
                      }
                  }
  </code></pre>
  
  <p>Above code to delete <strong>ONE</strong> item in productListBox. how can i change to <strong>delete Multiple item</strong>? thanks.</p>