Tuesday, May 3, 2011

windows forms: textbox with history

hello, 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!

From stackoverflow
  • 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 Edit control supports that natively.

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

0 comments:

Post a Comment