how to delete items from combobox during run time?
-
i have a form in which there is a combo box . i want to give user functionality to add and remove items from combo box at run time . add method is fairly easy but is the any method to remove or delete selected item from combobox. i want that user select an item from the combo box and when he press the remove button that item should be removed from my list. plz help me in this context sumit
-
i have a form in which there is a combo box . i want to give user functionality to add and remove items from combo box at run time . add method is fairly easy but is the any method to remove or delete selected item from combobox. i want that user select an item from the combo box and when he press the remove button that item should be removed from my list. plz help me in this context sumit
Hello, The code to remove an item from a combobox at runtime is:
ComboBox1.Items.RemoveAt(ComboBox1.SelectedIndex)
I hope this helps, Programmer2k4 My sig: "And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright I now use my CodeProject Blog! Most recent blog post: March 24