Public Class AutocompleteSample Dim popupMenu As FastColoredTextBoxNS.AutocompleteMenu Public Sub New() InitializeComponent() 'create autocomplete popup menu popupMenu = New FastColoredTextBoxNS.AutocompleteMenu(fastColoredTextBox1) popupMenu.MinFragmentLength = 2 'generate 456976 words Dim randomWords As List(Of String) = New List(Of String) Dim codeA As Integer = Asc("a") For i As Integer = 0 To 26 For j As Integer = 0 To 26 For k As Integer = 0 To 26 For l As Integer = 0 To 26 randomWords.Add(Chr(i + codeA) + Chr(j + codeA) + Chr(k + codeA) + Chr(l + codeA)) Next Next Next Next 'set words as autocomplete source popupMenu.Items.SetAutocompleteItems(randomWords) End Sub End Class
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)
Math Primers for Programmers