Select List Items With a TextBox Entry

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Beginning
Author:
Patrick Lockefeer

Version Compatibility: Visual Basic 6

More information:
Select items from a ListBox control with a number from a TextBox, and return the ListIndex in a Label control. Controls used : ListBox Name : List1 TextBox Name :txtItem Label Name : lblSelectItem CommandButton Name : Command1

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

Declarations:

Code: