Yes it can be done. Do please keep in mind though that some people may find
this behaviour very annoying. There's also the issue of people who may
suffer from epilepsy which can be triggered by flashing ...
According to the above article, problems are most likely with flash rates
between 5 and 30 per second, so avoid that. I'd also advise providing users
with a way to stop the flashing (a simple way to do this is to set the
form's TimerInterval property to 0). With that said, here's one way you can
do it ...
Private Sub Form_Load()
Me.TimerInterval = 500 'twice per second
End Sub
Private Sub Form_Timer()
If Me.cmdTest.ForeColor = vbRed Then
Me.cmdTest.ForeColor = vbYellow
Else
Me.cmdTest.ForeColor = vbRed
End If
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.