private void btnChildProgress_Click(object sender, EventArgs e) { //open child progress window ChildProgressWindow wnd = new ChildProgressWindow(this.ParentID); wnd.FormClosed += ((o, s) => { this.Show(); }); wnd.Owner = this; wnd.Show(); this.Hide(); }