Interviews2 answers
How do I close the child window without closing the whole application in windows forms..?
2 Answers
private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.FormClosed += new FormClosedEventHandler(frm2_FormClosed);
frm2.Show();
this.Hide();
}
private void frm2_FormClosed(object sender, FormClosedEventArgs e)
{
this.Close();
}
try This this might be helpful
pankaj kumarPosted Jul 2, 2015, 11:19 PM EDT
Hi Suraj, try this
List
Mohan GopiPosted Aug 20, 2013, 2:16 AM EDT

