Open Form

This is a pretty simple question... I am looking for the code to open a form using C#. Currently, I have an application that has two forms. i want to be able to open the other form from the main form. How can I do this?
I tried this, but it did not work:
Form2.Show();

Open in new window

LVL 3
computerstreberAsked:
Who is Participating?
 
burakiewiczCommented:
Form2 frm = new Form2();
frm.Show();
0
 
computerstreberAuthor Commented:
It worked... Thanks... I was so close...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.