Blinking Text

J

Jean Ulrich

Hi
I want to create a blinking text in a form
I have a field named "test" and i would like that this field blink all the
time.
I have set the timer to 1000 that means that the text will blink every
second
To make the text blink i want that every second the forecolor change
255 for red then 0 for black 255, 0, 255, 0, 255, 0 ...and so on
can somebody give me the exact vb code to put in the form properties "On
Timer"
thanks
 
D

Douglas J. Steele

You sure you want to do this? Many people find blinking text to be extremely
annoying!

To change the color, you need:

If Me!test.ForeColor = 255 Then
Me!test.ForeColor = 0
Else
Me!test.ForeColor = 255
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top