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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blinking or flashing text

Status
Not open for further replies.

kev747

Technical User
Jan 30, 2003
68
AU
Hi all,
I need some way of making a label on a form VERY obvious to the user.
I was thinking of something like the background colour of the label changing every few seconds, but any ideas are welcome.

Thanks all.

Kev.
 
try this...

1. in the On Timer property of your form enter this code:

If Me.Label1.BackColor = 16777215 Then
Me.Label1.BackColor = 8388608
Else
If Me.Label1.BackColor = 8388608 Then
Me.Label1.BackColor = 16777215
End If
End If

mix and match the colors to whatever you like. for this example,
12632256 = gray (the form i tested this on is battleship gray) and
8388608 = dark blue.

2. in the Timer Interval property enter something like 500.

3. save the form.

now try running it.

hope this helps you.
 
Kev,

one more thing. Labell of course refers to the name you have given to the label. so, if the label is named "lbl1" then the code would be:

me.lbl1.backcolor...etc.

hope this helps you.

 
Thanks cghoga,

Works a treat.

Kev.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top