make text in a label Flash?

Carta

Member
Joined
Apr 11, 2008
Messages
9
Programming Experience
1-3
Just would like to know how to check a label or certain characters, and how to make text in a label Flash, like show for a second off for second on a loop
Thanks
Dan
 
Well, to make the text in the label "flash", could be annoying to the user.

To do it, basically you just need a timer. In the timer's tick event you could do
VB.NET:
label1.visible = not label1.visible
and it should basically flash the label. Set the timer to 1000 and it would flash on for a second and off for a second.

As for checking a label for certain characters you could do something like
VB.NET:
dim contains as bool
contains = label1.Text.Contains("x")

contains will be true if the label's text contains the letter "x"
 
Back
Top