问题描述
我们有一个用户进入套计算为一个文本框,用逗号分隔,并以换行分隔。可能有成千上万的有效条款,所以我们希望他们键入向用户提供智能感知式的建议。默认自动完成是不足够的,因为它只会做在整个文本preFIX匹配,并且将不支持多行的文本框。如何实现智能感知类意见箱了一个WinForms文本框?
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?
推荐答案
我写的早在2005年这样做智能感知与一个列表框和文本框控件(或者它可能是一个RTB)。这是远离抛光或完美的,但可能让你开始。
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.
这篇关于如何实现智能感知类意见箱了一个WinForms文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!