//定时显示 private void timer1_Tick(object sender, EventArgs e) { Showfrm.f2.TopMost = true; Showfrm.f3.TopMost = true; if (s == DateTime.Now.ToString("t")) { Showfrm.show(); } }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { if (textBox1.Text != null) { Showfrm.show(); } else { } }
//间隔显示 private void timer2_Tick(object sender, EventArgs e) { //Showfrm.f2.TopMost = true; //Showfrm.f3.TopMost = true; span = DateTime.Now.TimeOfDay; ts = span - Form2.Span; if (c == Convert.ToInt32(ts.Minutes.ToString())) { this.timer2.Stop(); Showfrm.show(); } }
private void button4_Click(object sender, EventArgs e) { c = Convert.ToInt32(comboBox4.Text); timer2.Interval = 100; Showfrm.show(); }
private void button1_Click(object sender, EventArgs e) { Showfrm.show(); }