예제 #1
0
        private void enterBtn_Click(object sender, EventArgs e)
        {
            //this.Hide();
            SecondForm sf = new SecondForm();

            this.Hide();
            sf.ShowDialog();
            this.Close();
        }
예제 #2
0
        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();
            }
        }