cant remove an item from listbox
Posted
by beginnerrr
on Stack Overflow
See other posts from Stack Overflow
or by beginnerrr
Published on 2010-06-03T15:32:16Z
Indexed on
2010/06/03
15:34 UTC
Read the original article
Hit count: 112
c#
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);
© Stack Overflow or respective owner