private void enterBtn_Click(object sender, EventArgs e) { //this.Hide(); SecondForm sf = new SecondForm(); this.Hide(); sf.ShowDialog(); this.Close(); }
private void button3_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("Go Back?", "Confirm action", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { SecondForm sf = new SecondForm(); this.Hide(); sf.ShowDialog(); this.Close(); } }