コード例 #1
0
ファイル: Game.cs プロジェクト: StefanKennedy/Trillionaire
 private void HowToPlayButton_Click(object sender, EventArgs e)
 {
     HowToPlayForm howToPlayForm = new HowToPlayForm();
     howToPlayForm.Visible = true;
     howToPlayForm.BringToFront();
     howToPlayForm.Location = Location;
 }
コード例 #2
0
 // 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
 }