hi,
i would like to add selected items in a listbox1 to listbox2.
after copying, i want it to be deleted from listbox1, its like moving an item and vice versa

the problem is i cant delete the items from where it came from.
i tried a couple of codes and the nearest is it deletes half of the selected items

Code:
private void bttndisAllow_Click(object sender, EventArgs e)
        {


            foreach (int i in lbAllow.SelectedIndices)
            {
                
                lbdisAllow.Items.Add(lbAllow.Items[i].ToString());
            }
            foreach (int i in lbAllow.SelectedIndices)
            {
                
                lbAllow.Items.Remove(lbAllow.SelectedItem);
            }
            
                
            
        }
anyone please

tia