0

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?

NoName
  • 7,940
  • 13
  • 56
  • 108

2 Answers2

1

Turn Off Autocomplete feature of textbox

<asp:TextBox Runat="server" ID="Textbox1" autocomplete="off"></asp:TextBox>

Learning
  • 19,469
  • 39
  • 180
  • 373
0

Apart from implementing your own autocomplete, such as by overriding OnTextChanged and showing a list, the only options to control the behavior of autocomplete on a WinForms TextBox are 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.

Community
  • 1
  • 1
akton
  • 14,148
  • 3
  • 43
  • 47