日期:2014-05-17 浏览次数:21314 次
for (int i = 1; i < 9; i++) { Button btn = this.Controls["Button" + i.ToString()] as Button; btn.ForeColor = Color.Green; }