0

Hi there. I was wondering how I would add another form to my Form1 in a WFA project. And then when I click on a button on Form1, Form2 pops up.

I have no idea on how to do this and I was wondering if anyone knew =]

Thanks for the help!

Edited by pilipino93: n/a

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by pilipino93
0

So I just need to type this in my button:

Application.Run(new Form2());

?

edit: i tried it, but it didn't work =[

Edited by pilipino93: n/a

0

oh sweet, thanks dude =]
I got it working! ^^

private void button1_Click(object sender, EventArgs e)
        {
            Form2 formtwo = new Form2();
            formtwo.Show();
        }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.