ComboBox

A ComboBox displays a text box combined with a ListBox, which enables the user to select items from the list or enter new values. From the version Visual Studio 2005, some of the controls support Autocomplete feature including the ComboBox controls.

autocomplete combobox c# vb.net

Autocomplete ComboBox

autocomplete combobox property c# vb.net

The AutoComplete properties like AutoCompleteCustomSource, AutoCompleteMode and AutoCompleteSource to perform a TextBox that automatically completes user entry strings by comparing the initial letters being entered to the prefixes of all strings in a data source. The use of the AutoCompleteCustomSource property is optional, but you must set the AutoCompleteSource property to CustomSource in order to use AutoCompleteCustomSource like data source from database, list etc.

C# Autocomplete ComboBox

autocomplete combobox vb.net

The following program displays a C# Autocomplete ComboBox that select the values from Database and add to AutoCompleteStringCollection of the Autocomplete ComboBox.


Source Code | C#



VB.Net Autocomplete ComboBox

autocomplete combobox c#

The following program displays a VB.Net Autocomplete ComboBox that select the values from Database and add to AutoCompleteStringCollection of the Autocomplete ComboBox.


Source Code | VB.Net





NEXT.....Convert enum to List