forms - Make combobox act like drop-down list (C#) -
i'm using visual studio 2010 supports .net 4 , doesn't have support drop down list. trying same effect through combobox disabling ability user enter free-form text, not sure how. how can accomplish goal?
additional info
- visual studio 2010 support goes .net 4
- drop down box support in forms added in .net 4.5 (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.aspx)
- that's why can't use drop-down item nativity.
- that's why i'm asking help.
visual studio 2010 have support drop down lists when using .net 4. part of same control you're using (the combo box), have set property it.
change dropdownstyle property dropdownlist.
or programmatically with:
combobox1.dropdownstyle = comboboxstyle.dropdownlist;
check out msdn on comboboxes: combobox.dropdownstyle property
Comments
Post a Comment