private void button7_Click(object sender, EventArgs e)
{
foreach (Control item in this.Controls)
{
Console.WriteLine("{0}", item.Name);
}
}
private void button8_Click(object sender, EventArgs e)
{
foreach (Control item in this.Controls)
{
if (item is Button)
{
(item as Button).BackColor = Color.Red;
}
}
}