Take the 2-minute tour ×

How can I delete an item from listbox at particular location and not the SELECTED one?

Let's say if I have 4 items in listbox and I want to delete the one at index 2, how can I do that without selecting it.

share|improve this question
which platform? ASP.NET Silverlight Winform? –  Shoaib Shaikh Apr 4 '12 at 7:24
No it's desktop application. –  Ali Apr 4 '12 at 7:26
In that case: WPF or Windows Forms? –  Joey Apr 4 '12 at 7:26

3 Answers 3

up vote 3 down vote accepted

ListBox.Items should be a List. More precise a ListBox.ObjectCollection

Have you tried :


RemoveAt refference in MSDN

share|improve this answer
Added some links to MSDN –  Tarion Apr 4 '12 at 7:39
share|improve this answer
share|improve this answer

Your Answer


