110,569
社区成员
发帖
与我相关
我的任务
分享
int count;
string[] string1 = { "a", "b", "c", "d", "e", "f", "g" };
private void Form1_Load(object sender, EventArgs e)
{
Timer t = new Timer();
t.Interval = 24*3600*1000;
t.Tick += new EventHandler(t_Tick);
t.Start();
this.Text = string1[count];
count++;
}
void t_Tick(object sender, EventArgs e)
{
this.Text = string1[count % 7];
count++;
}