windows forms: textbox with history
Question
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!
Solution
Look at properties "AutoCompleteCustomSource", "AutoCompleteMode" and "AutoCompletesource" on TextBox class.
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow