How to clear all the options in a select box in C# (Windows form application)?
Is there something easy or does the code need to loop over all the items?
How to dynamically add an option to this select box?
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.
call the
Clear()method on theItemsPropertyThis will work for a ListBox or a ComboBox
http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.aspx