I’m coding a textbox that auto suggest when I’m writing, but when autocomplete appear, if I press Down, my textBox1.Text change, therefore it call TextChanged function, and autocomplete list is being update.
I want while I press Down, the text dont change ultil I press Enter. Is any way to fix this issue?
Apart from implementing your own autocomplete, such as by overriding
OnTextChangedand showing a list, the only options to control the behavior of autocomplete on a WinFormsTextBoxare given by the AutoCompleteMode property and the enumeration of the same name. See C# AutoComplete for a related question.Third party text boxes may have more options but I am not aware of any that do.