private void FileSelection_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; YOY_Player obj = new YOY_Player(true, false); this.Hide(); obj.ShowDialog(); }
private void frmMain_FormClosing(object sender, FormClosingEventArgs e) { //Application.ExitThread(); //Environment.Exit(0); e.Cancel = true; YOY_Player obj = new YOY_Player(true, false); this.Hide(); obj.ShowDialog(); }
private void btnSubmit1_Click(object sender, EventArgs e) { YOY_Player f2 = new YOY_Player(false, true); //this is the change, code for redirect this.Hide(); var result = f2.ShowDialog(); if (result != DialogResult.Cancel) { this.Close(); } }