首先你需定义一个存放不同颜色的数组,然后你使用timer控件根据时间的推移而改变label里面字体的颜色。我下面写的就是每隔一秒改变颜色的代码
private void timer1_Tick(object sender, EventArgs e)
{
if (this.timer1.Interval % 2 == 0)
{
this.lblText.ForeColor = System.Drawing.Color.Red;
}
else
{
this.lblText.ForeColor = System.Drawing.Color.Green;
}
timer1.Interval++;
}