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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ListBox.Items should be a List. More precise a ListBox.ObjectCollection
Have you tried :
RemoveAt refference in MSDN