Autocomplete for an Editable Combobox

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Jackle

Version Compatibility: Visual Basic 6

More information:
This is an modified version of a snippet on this site, changed to work with an "editable" combobox. Simply pass the combobox and they keyascii value to this function (e.g., from the KeyPress event) and it should work. The original snippet is available at

http://www.freevbcode.com/ShowCode.Asp?ID=2266 by Jack Mossman.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: