by Amer Shahzad (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 19th August 2002
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Make everything flash on a form.
'[email protected]
'Amer Shahzad
'You need to have one label, one text box and one timer on the form.
'and names would be = Label1 , Text1 and Timer1
varBlink = "On"
Label1.Caption = "BrainRoutes.com"
Text1.Text = "BrainRoutes.com"
End Sub
Private Sub Timer1_Timer()
Me.Caption = Time
If varBlink = "On" Then
Label1.Visible = True
Text1.ForeColor = RGB(255, 255, 255)
varBlink = "Off"
ElseIf varBlink = "Off" Then
Label1.Visible = False
Text1.ForeColor = RGB(255, 0, 0)
varBlink = "On"
End If
End Sub