Auto-Complete Combo Box that Prevents User from Selecting Items Not in List

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Henry aka PiR82k Erich III

Version Compatibility: Visual Basic 6

More information:
Modified code found in MS MSDN Lib. Prevents person from typing in item that is not already in list, even when combo box style is not set to drop-down list. This provides an auto-complete effect.

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

Declarations:

Code: