Add Ascending Numbers To A Listbox With an Inputbox

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

Version Compatibility: Visual Basic 6

More information:
Entering names in the Inputbox will add your values to the listBox, numbering them in ascending order. The inputBox continues to display until you click cancel, to allow for multiple entries.

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

Declarations:

Code: