I am showing some output say "Your complaint Number" in a text box in a form. I want to get it blinking. Can someone tell me how is it possible?
Thanks.
One approach is to use a Timer control. Set up the Timer with the interval to match the desired rate of blink. Inside the Timer Event handler, swap the foreground and background colors of the textbox, and refresh the textbox.
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
in textbox_lostfocus()
timer1.enabled=(textbox.text=""
end sub
in Timer1_Timer()
if val(textbox.tag)=10 then
textbox.tag=0
textbox.backcolor=white
exit sub
end if
if textbox.backcolor=red then
textbox.backcolor=white
else
textbox.backcolor=red
end if
textbox.tag=val(textbox.tag)+1
end sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.