how to delete items from combobox ?
-
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
Adding...................... Dim a As String = textbox1.text cbo.Items.Add("a") cbo.Items.Add("ja") cbo.Items.Add("a") Removing>>>>>>>>>>>>>>>>>>>>>>>>> cbo.Items.RemoveAt(cbo.SelectedIndex) or cbo.Items.Remove(cbo.SelectedItem) Clear<<<<<<<<<<<<<<<<<< cbo.Items.Clear()