//Method with initial settings when the window is loaded private void GameForm_Load(object sender, EventArgs e) { PictureBox[] box = { Harten2, Harten3, Harten4, Harten5, Harten6, Harten7, Harten8, Harten9, Harten10, HartenBoer, HartenVrouw, HartenHeer, HartenAas, Schoppen2, Schoppen3, Schoppen4, Schoppen5, Schoppen6, Schoppen7, Schoppen8, Schoppen9, Schoppen10, SchoppenBoer, SchoppenVrouw, SchoppenHeer, SchoppenAas, Klaveren2, Klaveren3, Klaveren4, Klaveren5, Klaveren6, Klaveren7, Klaveren8, Klaveren9, Klaveren10, KlaverenBoer, KlaverenVrouw, KlaverenHeer, KlaverenAas, Ruiten2, Ruiten3, Ruiten4, Ruiten5, Ruiten6, Ruiten7, Ruiten8, Ruiten9, Ruiten10, RuitenBoer, RuitenVrouw, RuitenHeer, RuitenAas, pictureBox14 }; foreach (PictureBox pBox in box) { pBox.Hide(); } priceLabel.BackColor = System.Drawing.Color.Transparent; turnPlayerLabel.BackColor = System.Drawing.Color.Transparent; resetButton.Hide(); buyCardButton.Hide(); standingButton.Hide(); scoreButton.Hide(); player1NameLabel.Hide(); BetPlayer1TextBox.Hide(); scorePlayer1TextBox.Hide(); player2LabelName.Hide(); BetPlayer2TextBox.Hide(); scorePlayer2TextBox.Hide(); player3LabelName.Hide(); BetPlayer3TextBox.Hide(); scorePlayer3TextBox.Hide(); player4LabelName.Hide(); BetPlayer4TextBox.Hide(); scorePlayer4TextBox.Hide(); player5LabelName.Hide(); BetPlayer5TextBox.Hide(); scorePlayer5TextBox.Hide(); scoreHouseTextBox.Enabled = false; scoreHouseTextBox.Hide(); scoreHouseTextBox.Text = "Score: " + dal.house.GetValueOfHand(); priceLabel.Text = "Prijzenpot: " + dal.price.GetPrice().ToString(); DetermineNumberOfPlayers(); }