private void GameUI_Load(object sender, EventArgs e) { if(debug) {MessageBox.Show("Er geht in die load", "DEBUG"); } foreach(Control b in tableLayoutPanel1.Controls) { if (debug) { MessageBox.Show("Er geht in die Schleife", "DEBUG"); } if (b is Button) { if (debug) { MessageBox.Show("Button gefunden", "DEBUG"); } b.Text = ""; if (activGame == false) { b.Enabled = false; } } } Config con = new Config(); con.loadConfig(); playerList = con.getPlayers(); }