DateTime newDate = new DateTime(2013, 1, 1);
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Tick += new EventHandler(timer1_Tick);
timer1.Interval = 60000;
timer1.Enabled = true;
timer1.Start();
newDate.AddMonths(+3);
lblDate.Text = newDate.ToString();
}
使用 C#,为什么这个计时器不起作用?我希望能够设置一个日期,(01/01/2013)和每分钟等于三个月