Is there an easy way to set the background color of all objects on a form? Im trying to do it through click event when everything is running. So there would be more then one button. What I would like to avoid is having:
changeColor_Click
{
label1.BackColor = Color.Black;
label2.BackColor = Color.Black;
label3.BackColor = Color.Black;
etc...
}
What I am looking for:
changeColor_Click
{
all.BackColor = Color.Black;
}
Keep in mind that each label is a different color backgrounds to start on the GUI:
label1 = blue
label2 = red
label3 = yellow
I have a lot of different objects and am trying to find a good way to switch between themes. Any suggestions on how I could achieve this?