How do I make a combobox stay open after an item is selected in C#?
I want to do this because it is actually a comboBox with a checklist so I can select several items.
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.
Use a
ListBoxinstead of a ComboBox. What you want to do (keep a ComboBox open even after the user has selected a choice) would be unusual and unexpected behavior.Update: I think this sample will let you do what you want (which is to have a multi-select list that only takes up the form real estate of one control):
http://www.codeguru.com/csharp/csharp/cs_controls/treeview/article.php/c15373/