How to do initial tasks when calling Show()

I called several Form2 from Form1 as in below:

for(int i=0; i<maxLoop; i++){
Form2^ myForm = gcnew Form2();
myForm->Show();
}

when I call Show(), I want to do some tasks automatically in Form2.
Please advise me.
Thanks
Why are u creating multiple forms and what do u want to do in them?
Topic archived. No new replies allowed.