private void buttonCancel_Click(object sender, EventArgs e) { windowStartGame = new StartGameForm(); windowStartGame.StartPosition = FormStartPosition.CenterScreen; windowStartGame.Show(); this.Close(); //Hide the Form1 window hideWin(); }
private void buttonOK_Click(object sender, EventArgs e) { StartGameForm f = new StartGameForm(); f.StartPosition = FormStartPosition.CenterScreen; f.Show(); //show the application's start window this.Close(); //close the window displaying the ranking hid(); //hide the main window transferred from Form2 }