Пример #1
0
        private void btnResults_Click(object sender, EventArgs e) //opens results form
        {
            frmResults res = new frmResults();                    //opens the results form when clicked

            this.Hide();
            res.Show();
        }
        private void btnResults_Click(object sender, EventArgs e)
        {
            DialogResult exitConfirm = new DialogResult();

            //confirmation dialogue
            exitConfirm = MessageBox.Show("Are you sure?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (exitConfirm == DialogResult.Yes)
            {
                frmResults main = new frmResults();
                this.Hide();
                main.Show();
            }
        }