I have 30 buttons on my form, and I want to add them to a list and then change the forecolor of them all using foreach
List<Button> buttons = new List<Button> { button3, button4, button5......etc };
foreach (Button btn in buttons)
{
btn.ForeColor = Color.White;
}
However the color of the buttons never actually changes.