5

does anyone know about a windows forms control that acts like the address bar of a browser?

it is just like a textbox, but to the right there is a dropdown menu that shows the history of previously entered text.

thanks a lot!

OregonGhost
  • 23,359
  • 7
  • 71
  • 108
clamp
  • 33,000
  • 75
  • 203
  • 299
  • see https://stackoverflow.com/questions/11238602/c-sharp-textbox-show-previous-written-texts – oo_dev Jun 13 '18 at 09:35

2 Answers2

5

Look at properties "AutoCompleteCustomSource", "AutoCompleteMode" and "AutoCompletesource" on TextBox class.

TcKs
  • 25,849
  • 11
  • 66
  • 104
1

You can use a ComboBox for this. Just add the previous entries to the item list. If what you actually want is AutoComplete, the WinForms TextBox control supports that natively.

OregonGhost
  • 23,359
  • 7
  • 71
  • 108