by Harald Staff (1 Submission)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(10 Votes)

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.
Download HTML Autocomplete (9 KB)