private void timer1_Tick(object sender, System.EventArgs e)
{
this.timer1.Enabled
=false;
System.Drawing.Drawing2D.LinearGradientBrush myBrush2 = new System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle,Color.Red, Color.Red, System.Drawing.Drawing2D.LinearGradientMode.Vertical);
System.Drawing.Graphics labelGraphics = this.label1.CreateGraphics();
System.Drawing.Font DrawFont = new System.Drawing.Font("Arial", 30);
System.Drawing.StringFormat drawFormat = new System.Drawing.StringFormat();
System.Drawing.RectangleF rec = new System.Drawing.RectangleF();
this.label1 .Refresh ();
labelGraphics.DrawString(System.DateTime.Now.ToString(("yyyy/MM/dd" + " " + "HH:mm:ss")),DrawFont,myBrush2,rec,drawFormat);
this.timer1 .Enabled
=true;
//this.label3.Refresh();
}
这样就不会闪动了