Triggering a new window
Let's say I have button1. I have the event set up for when it clicks. How would I go about making a new window from that? For example, I have Form1, then when the user clicks button1 it pops up Form2.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Feb 20, 2011, 6:42 PM
Frogleg has it right but jumped a bit too quickly.
Form2 fm2 = new Form2();
fm2.Show();
FroglegPosted Feb 19, 2011, 2:41 PM
fm2.Show();
Form2 fm2 = new Form2();