by Tom Pydeski (16 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)
This Code was written by Dave Andrews
and modified by Tom Pydeski
It is an api form with a listbox which can be used as an inputbox replacement where the user is presented with a list of choices in a listbox form instead of the standard inputbox.
modifications include:
made list 3d
automatically size list based on the number
of entries and the width of the longest entry
added the keystroke capability
added the option of changing the font to that of the calling form
or any of its container controls that support .textheight.
added double click capability to the list
Inputs
A list in an array
Code Returns
A list of selected items (if in multiselect mode) or a number representing the selected index
Side Effects
none (hopefully...:-)
API Declarationsquite a few...