Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Can somebody please help me on how to make text flash using a timer.

 

Is using a timer the ideal way or is there an easier way!?

 

I wanted to use:

 

If Label2.ForeColor.Red Then Label2.ForeColor.Empty() Else Label2.ForeColor.Red()

 

but i get system.color can not converted to Boolean.

 

Can somebody please help me... I am pulling my hair out!

 

Regards

 

Chris

-----------------

It�s always funny until someone gets hurt� Then it become hilarious!

Posted
Can somebody please help me on how to make text flash using a timer.

 

Is using a timer the ideal way or is there an easier way!?

 

I wanted to use:

 

If Label2.ForeColor.Red Then Label2.ForeColor.Empty() Else Label2.ForeColor.Red()

 

but i get system.color can not converted to Boolean.

 

Can somebody please help me... I am pulling my hair out!

 

Regards

 

Chris

 

try something like

 

Label2.ForeColor.white or Label2.ForeColor = Label2.backcolor instead of that empty statement

  • *Experts*
Posted

Seems easiest to me if you:

Don't do any flashing :)

OR

Clear the text and then reset it - always have the color as Red. To "save" the text, maybe put the text in the Tag property. Something like:

' Set this in the designer:
Label2.Color = Color.Red

' In your timer/wherever
If Label2.Text.Length = 0 Then
   Label2.Text = Label2.Tag.ToString()
Else
   Label2.Tag = Label2.Text
   Label2.Text = String.Empty
End If

 

-nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...