VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make everything flash on a form.

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.

Rate 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


Download this snippet    Add to My Saved Code

Make everything flash on a form. Comments

No comments have been posted about Make everything flash on a form.. Why not be the first to post a comment about Make everything flash on a form..

Post your comment

Subject:
Message:
0/1000 characters