Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set combobox list open as it is after selecting any item?
Posted
Comments
sunandandutt 16-May-12 5:33am    
Please elaborate your question.
Member 8131879[Sneha K] 16-May-12 6:40am    
Hello,
In my combobox have some list of names.When i select particular name then the list of names keep remain open as it is.

Suppose i type letter "A" then display list of all names which starts by letter "A".Currently i jus display name which type by name but not able to show whole list .How to do it?

Example:In google search engine when we type any letter then display lisy of all items which starts by typing letter.Like that i want it.

All items which start with the characters typed in the combo box can be shown by setting the following properties of ComboBox
DropDownStyle[^], AutoCompleteMode[^] and AutoCompleteSource[^]
as shown below:
C#
comboBox1.DropDownStyle= ComboBoxStyle.DropDown;
comboBox1.AutoCompleteMode =  AutoCompleteMode.SuggestAppend;
comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;
 
Share this answer
 
Comments
Maciej Los 16-May-12 6:56am    
Complete answer! My 5!
VJ Reddy 16-May-12 7:12am    
Thank you very much, losmac :)
Wendelius 16-May-12 17:26pm    
Very nice!
VJ Reddy 16-May-12 19:31pm    
Thank you, Mika :)
Sandeep Mewara 17-May-12 1:11am    
5!
Settin the ComboBox.DroppedDown property to true should do the trick.
 
Share this answer
 
Comments
Member 8131879[Sneha K] 16-May-12 7:22am    
Hello,
I done it.But,still not able to show combobox list open .
Hello,

As per given by solution,

comboBox1.DropDownStyle= ComboBoxStyle.DropDown;
comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;



i done it.But still not working properly.

For google search engine by using AJAX have to show combobox list open as it is.But, in windows application how to so it?
 
Share this answer
 
Comments
lukeer 21-May-12 3:01am    
This is not a solution.
Use the "Have a Question or Comment" facility like you did on Solution 1 and Solution 4 instead.
Your requirement is something like Autocomplete Extender in Ajax.
 
Share this answer
 
Comments
Member 8131879[Sneha K] 17-May-12 1:08am    
Hello,
Yes.But how to use it in windows application?

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