Blinking Text

wizcow

Registered User.
Local time
Today, 11:46
Joined
Sep 22, 2001
Messages
236
How can I make a textbox blink?

I want the title of my form to blink off and on, so as to draw attention to itself.

Thanks
Tom
 
You say "Textbox" .... I assume you mean the "Caption" on the top of the form ....

Place the following code in the Form's "On Timer" event:

Private Sub Form_Timer()
If Me.Caption <> " " Then
Me.Caption = " "
Else
Me.Caption = "Place Your Form Caption Here"
End If
End Sub

Change "Place Your Form Caption Here" to what you want as the Title of the form.

Set the Timer Interval to what you want (I recommend around 750).

Also in the "Caption" property for the form, enter the Title exactly as you have it in the code above.

HTH
RDH
 
Oops!

I have a 'Label' at the top of my form that I want to blink.

I'll see if I can work this code into the label.

Thanks
Tom
 
Use:
If Label1.Visible = True Then
Label1.Visible = False
Else
Label1.Visible = True
End If

In the on Timer event.
 
Teriffic, it works great.

Thanks everyone!
Tom
 
And please take note of Ricky’s blink rate. (700 minimum)

The aim is to get their attention, not to cause annoyance, discomfort or fatigue.

There is more to this than meets the eye. (Pun intended.)

Regards,
Chris.
 

Users who are viewing this thread

Back
Top Bottom