VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



API Listbox as Inputbox Replacement

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 Declarations
quite a few...

Rate API Listbox as Inputbox Replacement

Download API Listbox as Inputbox Replacement

Download API Listbox as Inputbox Replacement (10 KB)

API Listbox as Inputbox Replacement Comments

No comments have been posted about API Listbox as Inputbox Replacement. Why not be the first to post a comment about API Listbox as Inputbox Replacement.

Post your comment

Subject:
Message:
0/1000 characters