Add a Variable (Step) Range to Your ListBox
Category:
Lists, Collections and ArraysType:
SnippetsDifficulty:
BeginningAuthor:
Patrick LockefeerVersion Compatibility: Visual Basic 6
More information:
This Code adds a Variable Step Range to a ListBox. Enter First and Last numbers in txtFirstNum/txtLastNum controls and enter a Step value in txtStep. Click on cmdAdd to Add the Range to your ListBox Note : Set txtStep Property to Causesvalidation = True. Note 2: Limit the Maxlength property values of Textboxes if needed.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: