I have the following code in the button action:
pnl1.BackColor = Color.DarkOrange
pnl2.BackColor = Color.DarkOrange
pnl3.BackColor = Color.DarkOrange
pnl4.BackColor = Color.DarkOrange
pnl5.BackColor = Color.DarkOrange
pnl6.BackColor = Color.DarkOrange
... tenho 100 Panel'seguinte
Repeating the 100x code becomes ridiculous as well as unfeasible, which I thought was something like this:
For i = 0 to 100
(pnl+i.toString).BackColor = Color.DarkOrange
Next
This would work better ...
But I'm not getting it, I even thought about Macro Replacement but I still do not know the language very well.
Thanks in advance!