Click here to Skip to main content
16,018,802 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir,
I want to show label in one by one windows application in c#.net by using timer
Posted
Comments
[no name] 27-Jul-13 6:08am    
I don't understand clearly. you want many labels become visible one by one?
Please explain it.
ridoy 27-Jul-13 7:14am    
too unclear.

1 solution

Set up your timer to the appropriate interval (using the Interval property - remember it is in 1/1000th of a second) then in the Tick event all you cave to do is something like:
C#
myLabel.Text = myArrayOfTextStrings[index++];
if (index >= myArrayOfTextStrings.Length)
   {
   index = 0;
   }
Do note that index needs to be a class level variable, i.e. declared outside any method.
 
Share this answer
 

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