How to use Winforms Textbox Autocomplete for multiple phrases?
Posted: Thu Feb 16, 2023 2:43 pm
In our VO based e-mail program the user can enter an e-mail address which is autocompleted (=after adding any character, the next e-mail addresses still matching the typed part is displayed, the autocompleted part is selected so the user can keep entering extra characters until either the suggestion is correct or a new address has been entered). This could be cleverly handled using the VO events like EditChange.
This can obviously not be copied (easily) to a Winforms Textbox we use in the X# version of the program as events are or react different and nor did I think I needed to do that, as there in Autocomplete property readily available there.
But no. As often with .Net some build in feature looks promising but it is only doing a part of what you want and the functionality is never extended during the years after it was introduced. What is missing here is an option to enter and autocomplete multiple e-mail addresses, (, or ; separated). In our VO program these extra addresses also autocomplete. In the Winforms Textbox they don't.
I found some complicated tricks to go around that (something with implementing a listbox on a textbox) and reading the comments this doesn't completely solve my issue either.
My question is if anyone solved Autocomplete either to work with multiple phrases or by a not "out-of-the-limited-.Net-Box" solution like we did in VO?
Dick
This can obviously not be copied (easily) to a Winforms Textbox we use in the X# version of the program as events are or react different and nor did I think I needed to do that, as there in Autocomplete property readily available there.
But no. As often with .Net some build in feature looks promising but it is only doing a part of what you want and the functionality is never extended during the years after it was introduced. What is missing here is an option to enter and autocomplete multiple e-mail addresses, (, or ; separated). In our VO program these extra addresses also autocomplete. In the Winforms Textbox they don't.
I found some complicated tricks to go around that (something with implementing a listbox on a textbox) and reading the comments this doesn't completely solve my issue either.
My question is if anyone solved Autocomplete either to work with multiple phrases or by a not "out-of-the-limited-.Net-Box" solution like we did in VO?
Dick