public partial class Form1 : Form
{
private Form2 _form;
public Form1()
{
_form = new Form2();
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
_form.Show();
}
}
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
}
}