Add Random Decimal Numbers to a ListBox
Category:Lists, Collections and Arrays
Version Compatibility: Visual Basic 6
This simple sub procedure adds a random decimal number to a ListBox. If needed, you can set the ListBox property: Sorted = True. All your form needs is a listBox named list1 and a command button. This procedure could easily be modified to loop n times to build your listBox items.
Instructions: Copy the declarations and code below and paste directly into your VB project.