Let's say I ask the user for a number between 1 and 10, then they click a button. How would I then create that same number of listboxes to appear on a form? I know I could create them and make them visible after the number is entered, but I'm pretty sure that will create a ton of unnecessary code.
An example of what I tried:
An example of what I tried:
VB.NET:
intPlayers = toInt16(txtHowMany.text)
For TotalPlayers = 1 to intPlayers
dim lst as new listbox
lst.show()