private void btnBack_Click(object sender, EventArgs e) { frmLogIn newForm = new frmLogIn(); newForm.Show(); this.Hide(); }
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(); } }