
This code autocompletes in a Rich text box, and it displays a list of suggestions (much like the VB code editor that displays properties, see screenshot). It trigs on < and first suggestion is last un-closed HTML tag, by the help of a treeview showing the hierarchy.
It's the code part of "yet another HTML editor", I won't bother you with that.
The list technique can of course be used for anything else, but for now it's HTML.
This is my first submission, a thank you for all useful code you all have provided me with. If you hate it, be kind.