cant remove an item from listbox
- by beginnerrr
I am trying to remove an item from listbox but is not working. even that im sure that there exist an item to remove. any idea about what maybe going wrong?
iSelectedItem = ContactConflictListBox.ItemIndex;
if ((iSelectedItem == -1))
{
return;
}
ContactConflictListBox.Items.Remove(iSelectedItem);