private void Form1_Load(object sender, EventArgs e) { Trm_tiempo.Start(); Lbl_fecha.Text = DateTime.Now.ToLongDateString(); Lbl_hora.Text = DateTime.Now.ToLongTimeString(); MdiClient ctiMDI; foreach (Control cti in this.Controls) { try { ctiMDI = (MdiClient)cti; cti.BackColor = this.BackColor; } catch (InvalidCastException exc) { } } }
private void Trm_tiempo_Tick(object sender, EventArgs e) { Lbl_hora.Text = DateTime.Now.ToLongTimeString(); Trm_tiempo.Start(); }