private void button1_Click(object sender, EventArgs e) { GreyhoundArray[0] = new Greyhound() { MyPictureBox = pictureBox1, StartingPosition = pictureBox1.Left, RacetrackLength = racetrackPictureBox.Width - pictureBox1.Width - 60, MyRandom = Randomizer, }; GreyhoundArray[1] = new Greyhound() { MyPictureBox = pictureBox2, StartingPosition = pictureBox2.Left, RacetrackLength = racetrackPictureBox.Width - pictureBox2.Width - 60, MyRandom = Randomizer, }; GreyhoundArray[2] = new Greyhound() { MyPictureBox = pictureBox3, StartingPosition = pictureBox3.Left, RacetrackLength = racetrackPictureBox.Width - pictureBox3.Width - 60, MyRandom = Randomizer, }; GreyhoundArray[3] = new Greyhound() { MyPictureBox = pictureBox4, StartingPosition = pictureBox4.Left, RacetrackLength = racetrackPictureBox.Width - pictureBox4.Width - 60, MyRandom = Randomizer, }; for (int i = 0; i < 4; i++) { GreyhoundArray[i].TakeStartingPosition(); } timer1.Start(); bettingParlor.Enabled = false; }