Nov302009
C#动态显示系统时间
private void User_Login_Load(object sender, EventArgs e)
{
this.timer1.Enabled = true;
this.time.Text = DateTime.Now.ToString();
}
private void timer1_Tick(object sender, EventArgs e)
{
time.Text = DateTime.Now.ToString(“yyyy-MM-dd HH:mm:ss”);
}