Hello,
I am creating two forms Form1 and Form2 in C#. On Form1 there's a button to create more than one instance of Form2 based on a number provided by user. Here's the code to create Form2 instances:
for(int i=0; i < numOfCopies ; i++)
{
new Form2.show();
}
The problem is when there are more than one instances of Form2, changing values of any control on one form changes the value of the control in another form as well. How can the data be separated for these forms?
Thanks.