I'm writing a program that at one point implements a TextBox
with autocomplete. Currently, for purpose of simplicity I'm using CustomSource
manually populated by several entries at design time. While autocomplete works fine, I'd like it to make suggestions that don't simply start with the currently entered text, but contain it at any position in the stored choices.
For example, if words "globe", "lobe", and "glide" are the stored options, typing in "gl" correctly suggests both "globe" and "glide".
However, I'd like it to suggest both "globe" and "lobe" when "lob" is typed in. I'm not exactly sure how to approach this.
Has anyone done this before? VB.NET or C# are both fine, as long as I can figure out a proper .NET way to do this.
Cheers! = )