Ejemplo n.º 1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            frmLogIn newForm = new frmLogIn();

            newForm.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure you want to return? Make sure you have saved the data before returning!", "Confirmation", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                frmLogIn newForm = new frmLogIn();
                newForm.Show();
                this.Hide();
            }
        }