Create Flashing / Blinking Label

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I create a flashing / blinking label? I thought there might be a
simple property somewhere / somehow to do this, but I can't find anything.

Is my only recourse to set a form timer event and change the color with a
very short window? Seems like a lot to go through for such a simple effect.
 
KitCaz said:
How can I create a flashing / blinking label? I thought there might
be a simple property somewhere / somehow to do this, but I can't find
anything.

Is my only recourse to set a form timer event and change the color
with a very short window? Seems like a lot to go through for such a
simple effect.

Yep.

Be aware that having anything flash or blink can be a real problem for some
users. The usual recomendation is to limit the flash to a set number of times
(duration of several seconds) and then terminate it.
 
I agree with Rick in regards to ixnay the flashing label for long periods of
time. While not everyone suffers from epilepsy, it can be irritating on the
eyes after extended periods of time.

An alternative suggestion would be to create an icon based solution similar
to the .NET error provider. It is just as effective since it marks the
appropriate field and you can get rid of the whole timer issue altogether.

Lance
 
I agree with Rick in regards to ixnay the flashing label for long periods of
time. While not everyone suffers from epilepsy, it can be irritating on the
eyes after extended periods of time.

An alternative suggestion would be to create an icon based solution similar
to the .NET error provider. It is just as effective since it marks the
appropriate field and you can get rid of the whole timer issue altogether.

Lance
 
KitCaz said:
How can I create a flashing / blinking label? I thought there might be a
simple property somewhere / somehow to do this, but I can't find anything.

Is my only recourse to set a form timer event and change the color with a
very short window? Seems like a lot to go through for such a simple
effect.

Rick has mentioned the problems with flashing labels. I suggest that you do
not use complementary colors (like red/green) and do not do anything faster
than 1/2 second. The following code starts in 1 second and flashes a label 5
times for a 1/2 second duration flash off and a 2 and 1/2 second duration
on. Set the TimerInterval property to 1000.

Private Sub Form_Timer()
Dim i As Integer

For i = 1 To 5
If Me.lblWarning.Visible = True Then
Me.lblWarning.Visible = False
Me.TimerInterval = 500
Else
Me.lblWarning.Visible = True
Me.TimerInterval = 2500
End If
Next i

End Sub

--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 
KitCaz said:
How can I create a flashing / blinking label? I thought there might be a
simple property somewhere / somehow to do this, but I can't find anything.

Is my only recourse to set a form timer event and change the color with a
very short window? Seems like a lot to go through for such a simple
effect.

Flashing labels are for pornography products.
 
Back
Top