Active Form problem

J

Jason Huang

Hi,

In ASP.Net C# Windows Form, we have 2 forms, Form1 and Form2.
In Form1, I have "Form2 MyForm2=new Form2()", then I "MyForm2.Show()",
In Form2, I have "Form1 MyForm1=new Form1()", then I "MyForm1.Show()",
When I F5, the Form1 is the Main Form.
What I am asking is the MyForm1 equivalent to the origianl Form1 in screen?
Thanks for help.

Jason
 
Z

Zach

Jason Huang said:
Hi,

In ASP.Net C# Windows Form, we have 2 forms, Form1 and Form2.
In Form1, I have "Form2 MyForm2=new Form2()", then I "MyForm2.Show()",
In Form2, I have "Form1 MyForm1=new Form1()", then I "MyForm1.Show()",

Form MyForm = new Form1();
MyForm.Show();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top