Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
What's the difference combo box and drop down list?
Under what conditions should any of them be used?
Posted
Updated 5-Sep-11 20:52pm
v2
Comments
Prerak Patel 6-Sep-11 2:53am    
What is your problem?

The terms ComboBox and DropDownList are both commonly used to describe the System.Windows.Forms.ComboBox control.

There is a subtle difference (not always observed), however. The comboBox class has a DropDownStyle property that can be set to one of the following (descriptions ripped starigt from the MSDN page: http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle.aspx):

Simple

Specifies that the list is always visible and that the text portion is editable. This means that the user can enter a new value and is not limited to selecting an existing value in the list. 

DropDown

Specifies that the list is displayed by clicking the down arrow and that the text portion is editable. This means that the user can enter a new value and is not limited to selecting an existing value in the list. When using this setting, the Append value of AutoCompleteMode works the same as the SuggestAppend value. This is the default style. 

DropDownList

Specifies that the list is displayed by clicking the down arrow and that the text portion is not editable. This means that the user cannot enter a new value. Only values already in the list can be selected. The list displays only if AutoCompleteMode is Suggest or SuggestAppend.


Therefore the term DropDownList is often used to describe a combobox with a drop down style of DropDownList, i.e. a combobox with a non-editable text field
 
Share this answer
 
It is not clear what you are asking. If this is a general question, check this link.
http://msdn.microsoft.com/en-us/library/aa511458.aspx[^]

If you are talking about controls, ComboBox[^] is forms control while DropDownList[^] is web control.
 
Share this answer
 
Comments
Member 11194801 28-May-15 4:41am    
how i will insert textbox data to dropdownlist in winforms

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900