if (pattern[x] == 0)
{
Form1.button0.BackColor = Color.Yellow;
}
else if (pattern[x] == 1)
{
}
else if (pattern[x] == 2)
{
}
else
{
}
I'm trying to set the button backcolor, but whenever I try it doesn't recognise that button0 is a thing :/