-
Nov 14th, 2014, 03:30 PM
#1
Thread Starter
Junior Member
List box
Is there any way to have a list box generate a certain number of items of which the number of items needed to be generated is typed in a text box by the user?
-
Nov 14th, 2014, 03:42 PM
#2
Hyperactive Member
Re: List box
Use a For loop that iterates the number of times entered in the TextBox, and use ListBox1.Items.Add('whatever) to add the item to the ListBox.
-
Nov 14th, 2014, 04:56 PM
#3
Re: List box
Rather than a textbox, use a NumericUpdown control. That way, the user can't enter non-numbers, which will avoid some errors.
My usual boring signature: Nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|