|
Blink the text in a window application -- Bharathi --
Hi, How can I get a blinking text for a lable. Iam working in a window appln using framework 2.0 and VS 2005. Thanks in advance, Bharti Kumar. |
|
-- ice --
Bharathi wrote: Hi, How can I get a blinking text for a lable. Iam working in a window appln using framework 2.0 and VS 2005. Thanks in advance, Bharti Kumar. U can use Timer control for that private void timer1_Tick(object sender, EventArgs e) { if (label1.ForeColor == System.Drawing.Color.Black) label1.ForeColor = System.Drawing.Color.AntiqueWhite; else label1.ForeColor = System.Drawing.Color.Black; } private void Form1_Load(object sender, EventArgs e) { label1.ForeColor = System.Drawing.Color.Black; timer1.Interval = 100; timer1.Enabled = true; } |