I am trying to have it so once the file is opened, multiple forms of the same form opened. So in my code below, on program execution 10 forms of test would appear. I can see it working on the ram but it doesn't want to appear, or it will appear once and after I close one form another will open :P
Any ideas on what I am doing wrong?
Thanks :)
public partial class TestFrm : Form
{
public TestFrm()
{
InitializeComponent();
loopFrm();
}
public void loopFrm()
{
int loopNumber = 10;
Form[] TestFrm = new Form[loopNumber];
for (int i = 1; i < loopNumber; i++)
{
TestFrm[i] = new TestFrm();
TestFrm[i].ShowDialog();
}
}
}