VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

API Listbox as Inputbox Replacement

Tom Pydeski  (16 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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

Returns
A list of selected items (if in multiselect mode) or a number representing the selected index

Side Effects
none (hopefully...:-)

API Declarations
quite a few...

Rate API Listbox as Inputbox Replacement (7(7 Vote))

Download API Listbox as Inputbox Replacement

API Listbox as Inputbox Replacement Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters