private void button1_Click(object sender, System.EventArgs e) { var message = MessageBox.Show("If you leave you will loose your progress!", "Information", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); if (message == DialogResult.OK) { this.Hide(); var customScreen = new CustomisationScreen(); customScreen.ShowDialog(); this.Close(); } }