'How to show Form1 from Form2
I want to close Form2 with a button(it belongs to Form2) also this button will show Form1.
private void button3_Click(object sender, EventArgs e)
{
Form1 form = new Form1();// It's wrong because we open a new object
form.Show();
this.Close();
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
