Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is it possible to delete a specific line in a list box instead of having to clear the whole thing?
Posted
Comments
Hitesh_Mistry 2-Jun-13 1:25am    
just use listbox1.items.remove(index of item to be removed);
Mohammed Hameed 2-Jun-13 4:00am    
What u mean by delete a line. Do u want to delete list item?

try this
C#
ListBox1.Items.RemoveAt(2);// provide your index as integer
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900