I have a label in my form, which I change the color modifying its fontcolor property every second with a timer control.
The problem is that the label blinks.
Is there any way of avoiding this to happen??
Thank you.
Nauj
Printable View
I have a label in my form, which I change the color modifying its fontcolor property every second with a timer control.
The problem is that the label blinks.
Is there any way of avoiding this to happen??
Thank you.
Nauj
I have tried to simulate what you did and got no problem. The label turned from yellow to blue without blinking. I have coded something like this:
Private Sub Timer1_Timer()
If i = 0 Then
Label1.ForeColor = &HFF0000 'blue
i = 1
Else
Label1.ForeColor = &HFFFF& 'yellow
i = 0
End If
End Sub
Also, check the timer's INTERVAL property. The value should be 2000 for two (2) seconds. If you put 2, that means it will change color for every 2 milliseconds.
Hope this help.
Cheers,
Rod
If that doesn't work, try placing the Label within a Picturebox.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]