Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create combo box to auto fill while user type the spelings inside the combo Box in c#

My friends , I have a combo box in my windows form , i can fill it with data from database , But i cant fill the combo box when the user type letters in side the combo box , As a example when user type the letter "R" in side the combo box and combo box must dropped down and shows the all possibles with the letter "R"

like image 849
Roshan Avatar asked Mar 05 '13 08:03

Roshan


1 Answers

  1. Set yourComboBox.AutoCompleteSource to AutoCompleteSource.ListItems; (if your yourComboBox.Items was already filled from the database)
  2. Set yourComboBox.AutoCompleteMode to SuggestAppend
like image 74
Nasreddine Avatar answered Oct 15 '22 15:10

Nasreddine