Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one label which is for latest news. so i want to blink that label so user can attract. so which way or which code i do.

so, pleas help me regarding this....

Thanksss.
Mitesh
Posted
Updated 10-May-12 20:53pm
v2

Hi I'm not sure if you are writing an App or a web page.

If App add a button. See if you can get the label to change color by handling a button click event.

Next use the same code in a timer event handler.

For web page case, use an animated gif as label to draw attention.
 
Share this answer
 
 
Share this answer
 
Comments
[no name] 11-May-12 3:14am    
gives error like:

cannot implicitly convert type 'System.EventHandler' to 'System.EventHandler<system.eventargs>

at:
Timer2.Interval = 500;
Timer2.Tick +=new EventHandler(Timer2_Tick); // error line
Timer2.Enabled = true;

please help me..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900