It is to be stored it in the component's AutoCompleteList property, which is a List. In the main Form's Load event, we read a text file called " en-EN.dic", which is a dictionary with more than 50,000 entries. NET code only, no Win32 Calls and no sloppy threading, e.g. Secondly, we use IndexOf instead of Linq to find the matches. At first, we use a Panel instead of a Form to display a list of suggestions. Well, there are a few differences between other approaches. The code comments are overkill, I think, but this makes the source self explaining. This is my first article, so don't expect this to be perfect. The solutions I found were little clumsy, so here is my rather simple, but stable solution. I was searching for a TextBox with autocomplete capabilities considering substring matches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |