Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flashing warning message

Status
Not open for further replies.

jaydeebe

IS-IT--Management
Nov 14, 2003
169
GB
I was asked if I could make a message flash on the screen to warn users. I achieved this with this code attached to the form timer property.

Private Sub Form_Timer()
Counter.Value = Counter.Value + 1
If (Counter.Value Mod 2) = 0 Then Box23.Visible = True
If Not (Counter.Value Mod 2) = 0 Then Box23.Visible = False
End Sub

It turns the message on and off based on odd and even numbers from the counter.
Counter is just a text box with a default value of 1.
Box23 is the message.


Jaydeebe BSc (hons)
MCSA 2k
MCSE 2k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top