// return to home screen private void exitBtn_Click(object sender, EventArgs e) { homeScreen hS = new homeScreen(); hS.Show(); this.Hide(); }
private void returnToHomeBtn_Click(object sender, EventArgs e) { // return to home screen homeScreen hS = new homeScreen(); hS.Show(); this.Hide(); }
// this brings the user to the home screen private void cancelBtn_Click(object sender, EventArgs e) { if (MessageBox.Show("Do you want to exit to the home screen?", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes) { connection.Close(); homeScreen hS = new homeScreen(); hS.Show(); this.Close(); } }