|
-
Nov 3rd, 1999, 07:00 AM
#1
Thread Starter
Junior Member
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
-
Nov 3rd, 1999, 07:14 AM
#2
Hyperactive Member
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
-
Nov 3rd, 1999, 07:28 AM
#3
Lively Member
how about an easier code...
Private Sub Timer1_Timer()
Label1.visible = not Label1.visible
End Sub
yup...thats it...
-
Nov 3rd, 1999, 09:32 PM
#4
Thread Starter
Junior Member
Thank you guys!
------------------
Paul Stermann
DSI-Houston
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|