How do I implement intellisense-like suggestion boxes for a winforms textbox?

大兔子大兔子 提交于 2019-12-07 15:28:50

问题


We have a textbox that the user enters sets of terms into, delimited by commas and separated by newlines. There may be thousands of valid terms, so we'd like to offer the user intellisense-style suggestions as they type. The default autocomplete isn't adequate because it will only do prefix-matching on the entire textbox, and won't support multiline textboxes. How do I implement intellisense-like suggestion boxes for a winforms textbox?


回答1:


I wrote this article back in 2005 about doing intellisense with a listbox and a textbox control (or it might have been a RTB). It's far from polished or perfect but might get you started.




回答2:


I do exactly that using the Infragistics UltraCombo component. Unfortunately it's not free.



来源:https://stackoverflow.com/questions/767622/how-do-i-implement-intellisense-like-suggestion-boxes-for-a-winforms-textbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!