Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i type in combox and search a name and list as below if not exists means i should type in that combobox in windows application..
Posted
Comments
navin ks 8-Apr-13 3:53am    
Full code? gl with that :D
Sharon 2 8-Apr-13 3:55am    
Connection obj = new Connection();
obj.getconn();
SqlCommand cmd3 = new SqlCommand();
cmd3.Connection = obj.con;
cmd3.CommandType = CommandType.StoredProcedure;
cmd3.CommandText = "SEL_Subcontractor1";
SqlDataAdapter ds3 = new SqlDataAdapter(cmd3);
cmd3.Parameters.AddWithValue("@name", sub.Text);
DataTable dt3 = new DataTable();
ds3.Fill(dt3);
sub.DataSource = dt3;
sub.DisplayMember = "name";
//sub.ValueMember = "subid";
obj.con.Close();
sub.AutoCompleteMode = AutoCompleteMode.Suggest;
sub.AutoCompleteSource = AutoCompleteSource.ListItems;
this is my code....combobox style is dropdown....
how can i type...
yes
navin ks 8-Apr-13 4:05am    
use ajax autocomplete tool
Sharon 2 8-Apr-13 4:11am    
its windows application

1 solution

Creating an auto complete textbox in windows application:
winforms-autocomplete-textbox-using-cs[^]
 
Share this answer
 

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