in my windows forms application I need for example a variable amount of strings. I am just using strings to simplify here. Actually I want to create a variable amount of Webbrowsers to access multiple URLs at once. So to use an Array isn't the answer in this case...
I tried to solve this with the use of a for-clause like this:
int amount = 12
for (int i = 0; i < amount; i++)
{
string variable_i = new string();
}
this didn't work because the variable, i in this case, is not being handled as a variable and it is only trying to create the string variable_i twelfth times.
If there is any way to accomplish that please let me know :)