private void HowToPlayButton_Click(object sender, EventArgs e) { HowToPlayForm howToPlayForm = new HowToPlayForm(); howToPlayForm.Visible = true; howToPlayForm.BringToFront(); howToPlayForm.Location = Location; }
// When the how to play button is clicked private void HowToPlayButton_Click(object sender, EventArgs e) { HowToPlayForm howToPlayForm = new HowToPlayForm(); // Create a new instance of the How to Play form howToPlayForm.Visible = true; // Show the new How to Play form howToPlayForm.BringToFront(); // Ensure that the How to Play form is at the front of the form howToPlayForm.Location = Location; // Set the location of this new form to the same location as this form }