PDA

Click to See Complete Forum and Search --> : Creating Flashing Labels


prestodsi
Nov 3rd, 1999, 06:00 AM
Does anybody has an idea about how to create a label which flashes (visible/not visible) at the frequency defined by the Timer?

Most of the code I wrote using For...Next or Do...Loop ends up hanging (looping either on visible or invisible.

Any help would be appreciated

------------------
Paul Stermann
DSI-Houston

Bob Baddeley
Nov 3rd, 1999, 06:14 AM
Here you go. Set the timer to however fast you want and put this code in

Private Sub Timer1_Timer()
If Label1.Visible = False Then
Label1.Visible = True
Else
Label1.Visible = False
End If
End Sub

Bios
Nov 3rd, 1999, 06:28 AM
how about an easier code...

Private Sub Timer1_Timer()
Label1.visible = not Label1.visible
End Sub

yup...thats it...

prestodsi
Nov 3rd, 1999, 08:32 PM
Thank you guys!

------------------
Paul Stermann
DSI-Houston