Ejemplo n.º 1
0
 ////creates a random number between 1 and 100 and stores it in a global 
 ////variable that can be used throughout the program 
 //public static Random randNum = new Random();
 //int rand = randNum.Next(1, 101);
 public Form1()
 {
     InitializeComponent();
     GuessingGame gg = new GuessingGame();
     this.Controls.Add(gg);
     gg.Location = new Point((this.Width - gg.Width) / 2, (this.Height - gg.Height) / 2);
     gg.Show();
 }