private void ContinueToMain() { frmNewMain f = new frmNewMain(); f.Shown += MainShown; f.FormClosed += F_FormClosed; f.Show(); }
private void MainShown(object sender, EventArgs e) { this.Hide(); frmNewMain f = (frmNewMain)sender; f.BringToFront(); }