Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道像浏览器地址栏一样的 Windows 窗体控件吗?
它就像一个文本框,但右侧有一个下拉菜单,显示以前输入的文本的历史记录。
多谢!
查看 TextBox 类的属性“AutoCompleteCustomSource”、“AutoCompleteMode”和“AutoCompletesource”。
您可以为此使用 ComboBox。只需将以前的条目添加到项目列表中。如果您真正想要的是 AutoComplete,WinForms TextBox 控件本身就支持它。