Vb.net ComboBox Autocomplete

combobox, filtering, vb.net

Solution

Change this Setting

DropDownStyle = DropDownList

Problem

I have a `ComboBox` with `DropDownStyle = Simple` and have bound it to a `DataSet`. What I want is : when I type 'a', I want my `ComboBox` to show only the items starting with the letter 'a' just Dictionary Program. I have tried the `AutoComplete` property but it just shows a `DropDown` and that's not what I want HERE IS MY CODE: ``` Private Sub TICKETING_FORM_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load da.Fill(ds, "STYLE") bs.DataSource = ds.Tables("STYLE") With Style_ComboBox .DataSource = bs .DisplayMember = "STYLE" .ValueMember = "STYLE" .AutoCompleteMode = AutoCompleteMode.Suggest .AutoCompleteSource = AutoCompleteSource.ListItems End With End Sub ```

Original source