My program has the ability to add textboxes during run time. The amount of textboxes on the form at run time is stored in the variable i. I need to create an array that stores all of the values from each of the textboxes in a place in the array up to the value of i. All of the textboxes have names that count upwards. Example:
- Textbox1
- Textbox2
- Textbox3
And so on. In summary, is there any way I can store the values of i amount of textboxes, in an array? Any help will be appreciated, thanks.
Additional note:
- This program is kind of like a registration form, besides the fact that there could be any amount of textboxes on the form to store in the array.
- The procedure that would add the values of the textboxes to an array will be triggered by a button press, so i cannot add add the values of the textboxes as they are created.