If you supply a list of strings to an edit control and set the autocomplete mode and source then you automatically get autocomplete functionality. My question is can I get the same functionality in .NET somewhere without a control. In other words I want something like:
string[] ProgressivePartialMatch( string[] Strings, string MatchText )
and so I want the strings back that would have showed up in the autocomplete, so to speak.
If you want fast autocomplete, you're going to want to implement a trie. You can find all the items that start with a particular string by following the trie down until the "starts with" string ends.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With