I have a TextBox in my Windows Forms project which as part of a table holds a description of some material a company will buy. To ensure that the company enforces consistent naming, I have implemented autocomplete on the TextBox as so:
AutoCompleteStringCollection source = new AutoCompleteStringCollection();
source.AddRange(pastItems);
desc.AutoCompleteCustomSource = source;
desc.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
desc.AutoCompleteSource = AutoCompleteSource.CustomSource;
But when I am typing anything into the TextBox, the dropdown is not populating.