private void returnToRegMenu_Click(object sender, EventArgs e) { // Hide Login Window this.Hide(); // Create and Show Menu window studentRegistrationMenu studentReturn = new studentRegistrationMenu(); studentReturn.ShowDialog(); // Close Login window this.Close(); }