• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

blinking borders

how do I make a label border color blinks?
Example (black-white-black-white...) as long as form is open
0
Tarazan
Asked:
Tarazan
1 Solution
 
TarazanAuthor Commented:
Edited text of question
0
 
brewdogCommented:
It seems like you'd have two choices:

1. An ActiveX control that animates like that (I don't know of one, though)
2. A Timer event that does something like this:
         fColor = not fColor
    if fColor then
         linBlack.visible = true
         linWhite.visible = false
    else
         linBlack.visible = false
         linWhite.visible = true
    end if

   On Form_Load, then you could set fColor to true or false, whichever you like. Then set the Timer property to however many milliseconds you want (probably 2000 for 2 seconds, maybe).

The second way isn't all that pretty, to my mind, and eats up some CPU time, but . . .

It's an answer. :^)

brewdog
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now