private void Time_Tick(object sender,EventArgs e)
{
Random rand1 =new Random();
System.Drawing.Color Col = System.Drawing.Color.FromArgb(rand1.Next(256),rand1.Next(256),rand1.Next(256));
this.label1.ForeColor = Col;
}
C#中随机改变字体颜色
最新推荐文章于 2024-07-02 04:52:11 发布