How to do initial tasks when calling Show()

hyundoj (7)
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
bobdabilder (56)
Why are u creating multiple forms and what do u want to do in them?
Registered users can post here. Sign in or register to post.