Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show list of items related to character user type in combobox.
or if user enter any new item that not present in list can add to database.

I am using Windows forms in c#.net.
pls help me.
Thanks in advance.
Posted
Updated 14-Sep-12 18:21pm
v2

1 solution

hiii,

follow following steps,

1) Set Properties of combobox:
AutoCompleteMode = Suggest;
AutoCompleteSource = ListItems;

C#
comboBox1.Leave += new System.EventHandler(this.comboBox1_Leave);


And int this event add code to insert in database/list and
just refresh data source.
i.e clear previous list items of combobox and insert again from database
 
Share this answer
 
v2

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