ListLookup (Autocomplete ComboBox Function)
By placing a reference to this module (single sub, no API) in a ComboBox_KeyPress event, the combobox will search the list for a match and offer an autocomplete. Options include allowing for a case-sensitive search and allowing the user to only select from items located in the list (like a Dropdown List) Backspace key and deleting of highlighted text is supported. Based on Mike Schaffer's IncrLookup [page 28 of the Visual Basic Source Code Library]. API Call was removed and replaced with a local function, boolean options added, backspace support added, documentation added. Extensive documentation included in module, including usage and line by line commenting (if PSC's parser puts in extra CR's, it's will get ugly) Developed and Tested in VB 6. Nothing complex, so it should work in any version, but not tested.
AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Upload